Display locations or track a geo data stream in real-time over an interactive map.
In order to use this app inside Ada, you must provide a Mapbox API key, configured as a
token
in your App Input Data.
Display a list of coordinates as markers over an interactive map. This can help to answer questions like, “Where are your stores?” or “Where can I visit you?”.
- points: an array of coordinates, where each item is of the form
[longitude, latitude]
- labels: an array of labels for each point, where each item is of the form
"place_name"
App Input Data Key | Value |
---|---|
token | your_token |
points | [[144.979999,-37.796021], [144.969415,-37.815514]] |
labels | ["Lune HQ, Fitzroy", "Lune, Collins St"] |
Display a list of coordinates as labelled, numbered markers. This can help to prompt questions from Ada like, “Where would you like to book your appointment?“ or “Choose a pickup location“.
This can provide a way for the user to visually pick from a collection of locations and best paired with a List Option Picker message.
- points: an array of coordinates, where each item is of the form
[longitude, latitude]
- labels: an array of labels for each point, where each item is of the form
"place_name"
- annotate: a boolean as a string, of the form
true
App Input Data Key | Value |
---|---|
token | your_token |
points | [[144.979999,-37.796021], [144.969415,-37.815514]] |
labels | ["Lune HQ, Fitzroy", "Lune, Collins St"] |
annotate | true |
Display a marker that updates its location from a live data stream. This can help to answer questions like, “Where's my package?“ or “How's my delivery going?“
Note that real-time tracking only appears if the widget is active, otherwise a message prompting the user to ask for tracking again is displayed.
- stream: URL endpoint for a GeoJSON stream, of the form
https://example-url.com
App Input Data Key | Value |
---|---|
token | your_token |
stream | https://wanderdrone.appspot.com |