logistics

Routing

Etas, routes and turn by turn directions

Directions $0.001 per request

POSThttps://api.m3o.com/v1/routing/Directions

Turn by turn directions from a start point to an end point including maneuvers and bearings

Request payload

destination object

The destination of the journey

origin object

The staring point for the journey

Response

directions object array

Turn by turn directions

distance number

Estimated distance of the route in meters

duration number

Estimated duration of the route in seconds

waypoints object array

The waypoints on the route

Eta $0.001 per request

POSThttps://api.m3o.com/v1/routing/Eta

Get the eta for a route from origin to destination. The eta is an estimated time based on car routes

Request payload

destination object

The end point for the eta calculation

origin object

The starting point for the eta calculation

speed number

speed in kilometers

type string

type of transport. Only "car" is supported currently.

Response

duration number

eta in seconds

Route $0.001 per request

POSThttps://api.m3o.com/v1/routing/Route

Retrieve a route as a simple list of gps points along with total distance and estimated duration

Request payload

destination object

Point of destination for the trip

origin object

Point of origin for the trip

Response

distance number

estimated distance in meters

duration number

estimated duration in seconds

waypoints object array

waypoints on the route