Skip to content

cjmlgrto/ada-map-widget

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

52 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ada Maps Widget

Display locations or track a geo data stream in real-time over an interactive map.

An example of the widget in action

Usage

Requirement

In order to use this app inside Ada, you must provide a Mapbox API key, configured as a token in your App Input Data.

Mark Locations

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?”.

App Input Data

  • 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"

Example

App Input Data Key Value
token your_token
points [[144.979999,-37.796021], [144.969415,-37.815514]]
labels ["Lune HQ, Fitzroy", "Lune, Collins St"]

List Locations

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.

App Input Data

  • 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

Example

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

Track Real-time Location

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.

App Input Data

  • stream: URL endpoint for a GeoJSON stream, of the form https://example-url.com

Example

App Input Data Key Value
token your_token
stream https://wanderdrone.appspot.com

About

An Ada App for showing a map in the conversation

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published