moovexDocs

Get map routes for trips

Returns available map route options for the provided trip ids.

GET/trips/routes

Query Parameters

ParameterTypeRequiredDescription
idsstring[]YesTrips to fetch routes for

Example Response

{
  "trips": [
    {
      "id": 10,
      "routes": [
        {
          "coordinates": [
            {
              "lat": 32.1,
              "lng": 34.8
            },
            {
              "lat": 31.99,
              "lng": 34.89
            }
          ],
          "legs": [
            {
              "distance": 12500,
              "duration": 2400
            }
          ]
        }
      ]
    }
  ]
}

On this page