Static route generator
GET/route/:vehicle_type/:wkt_waypoints
Returns JSON with a proposed route or error if a route can not be found. Request route between 2 points with all routing parameters by default:
/route/v1/driving/44.0925729,56.2944997;44.0879421,56.2958883?start_time=2019-09-09T12:00:05Z
Request route between 2 points with vehicle initially staying on side of road for driving west:
/route/v1/driving/44.0925729,56.2944997;44.0879421,56.2958883?heading=270&start_time=2019-09-09T12:00:05Z
Request route between 2 points returning way ids for the resulting route:
/route/v1/driving/44.0925729,56.2944997;44.0879421,56.2958883?annotations=duration,distance,ways&start_time=2019-09-09T12:00:05Z
Request
Responses
- 200
- 400
- 403
- 404
Route has been generated.
This result code is returned for requests that are not valid: for example, request type is not recognized, request contains unrecognized parameter or parameter value is invalid. With this result code http reply contains a json document in the body, where a short description of invalid part of the request is stored as a string data.
Request is not authenicated or is not allowed for this user.
This code can be returned for route/tdroute requests when daemon could not find a route between waypoints. Json document containing short description of issue is always returned with this result code inside the http reply body.