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
KeyValuesDescriptionExample
VERSIONv1Versionv1
PROFILEcar or motoMode of transportationcar
COORDINATES{longitude},{latitude};{longitude},{latitude}String of coordinates format101.1234,10.1234;101.5678,10.5678

Parameters

ParameterValuesDescriptionExample
geometriespolyline (default), polyline6 , geojsonReturned route geometry format (influences overview and per step)polyline
stepstrue , false (default)Return route steps for each route legtrue
overviewsimplified (default), full , falseAdd overview geometry either full, simplified according to highest zoom level it could be display on, or not at all.full
keyString (required)API keypublic_key