View source: R/make_searches.R
make_location | R Documentation |
Define your locations to use later in departure_searches or arrival_searches.
make_location(id, coords)
id |
You will have to reference this id in your searches. It will also be used in the response body. MUST be unique among all locations. |
coords |
Location coordinates. Must use this format: list(lat = 0, lng = 0) |
See https://docs.traveltime.com/api/reference/distance-matrix for details
A data.frame wrapped in a list. It is constructed in a way that allows jsonlite::toJSON to correctly transform it into a valid request body
See time_filter
for usage examples
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.