Query parameters

  • start object Required

    Position lat/lon

    Additional properties are NOT allowed.

    Hide start attributes Show start attributes object
    • lat number Required

      Latitude comprise entre 90deg et -90deg décimaux en datum WSG-84

    • lon number Required

      Longitude comprise entre 180deg et -180deg décimaux en datum WSG-84

  • end object Required

    Position lat/lon

    Additional properties are NOT allowed.

    Hide end attributes Show end attributes object
    • lat number Required

      Latitude comprise entre 90deg et -90deg décimaux en datum WSG-84

    • lon number Required

      Longitude comprise entre 180deg et -180deg décimaux en datum WSG-84

Responses

  • 200 application/json

    Ok

    Hide response attributes Show response attributes object
    • distance number Required

      Distance exprimée en mètre

      Minimum value is 0, maximum value is 1000000.

    • duration number Required

      Durée exprimée en seconde

      Minimum value is 0, maximum value is 36000.

GET /geo/route
curl \
 -X GET http://api.example.com/geo/route?start=%7B%7D&end=%7B%7D \
 -H "Authorization: Bearer $ACCESS_TOKEN"
Response examples (200)
{
  "distance": 42.0,
  "duration": 42.0
}