View source: R/get-mapbox-isochrone.R
get_mapbox_isochrone | R Documentation |
Obtain a drive time isochrone from mapbox.com
get_mapbox_isochrone( df, id, long, lat, contours_minutes, base_url = "https://api.mapbox.com/", mapbox_token = "" )
df |
The data frame with id, latitude and longitude |
id |
The ID variable name for the created isochrone |
long |
The longitude variable name |
lat |
The latitude variable name |
contours_minutes |
Drive time minutes to define boundary of isochrone (must be 60 or less) |
base_url |
The mapbox base url. |
mapbox_token |
Your mapbox API token |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.