Functions to turn a successful request into data - either polygons, routes or times.
1 2 3 4 5 6 7 8 9 10 11 | catchBadResponse(response)
processResponse(response, service)
processPolygons(payload)
getRouteFeatures(route)
processRoutes(payload)
processTimes(payload)
|
response |
A response object from |
service |
The Targomo API service being called - polygon, route or time. |
payload |
The |
route |
A single element of the returned routes list. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.