Directions
Routing from point A to point B.
Url
Method: GET
https://maps.track-asia.com/route/{VERSION}/{PROFILE}/{COORDINATES}.json
Example
https://maps.track-asia.com/route/v1/car/106.1234,10.1234;106.5678,10.5678.json?geometries=polyline&steps=true&overview=full&key=public_key
https://maps.track-asia.com/route/v1/moto/106.1234,10.1234;106.5678,10.5678.json?geometries=polyline&overview=full&key=public_key
Key | Values | Description | Example |
---|---|---|---|
VERSION | v1 | Version | v1 |
PROFILE | car or moto | Mode of transportation | car |
COORDINATES | {longitude},{latitude};{longitude},{latitude} | String of coordinates format | 101.1234,10.1234;101.5678,10.5678 |
Parameters
Parameter | Values | Description | Example |
---|---|---|---|
geometries | polyline (default), polyline6 , geojson | Returned route geometry format (influences overview and per step) | polyline |
steps | true , false (default) | Return route steps for each route leg | true |
overview | simplified (default), full , false | Add overview geometry either full, simplified according to highest zoom level it could be display on, or not at all. | full |
key | String (required) | API key | public_key |