Skip to main content
GET
Get a navigation route
For easy integration with web and Android projects, this service is also available through our JavaScript and Java libraries.
The encodedPolyline field contains geographic data which is decoded into web-friendly GeoJSON format using our JavaScript library.

Authorizations

key
string
query
required

Your Baato access token. See Authentication.

Query Parameters

points[]
string[]
required

Start and end destinations in lat,lon form. Repeat the parameter for each point; at least two are required. Intermediate points are supported.

Minimum array length: 2
mode
enum<string>
required

Mode of travel.

Available options:
car,
bike,
foot
alternatives
boolean
default:false

Return alternative routes in addition to the best one.

instructions
boolean
default:false

Include a turn-by-turn instruction list with each route.

Response

One or more routes between the given points.

timestamp
string

Server time when the response was generated.

Example:

"Thu May 14 07:35:16 NPT 2020"

status
integer

HTTP-style status code echoed in the response body.

Example:

200

message
string
Example:

"Success"

data
object[]