Route Planner
Calculate a route between two points and download it
Enter a start and an end position, add optional via points the route must pass through, and get the driving, cycling or walking route as GeoJSON, Lua, WKT or a plain coordinate list. The route is previewed on a map.
Route
Plan a route and export it in the format you need
The route planner calculates a road, cycling or walking route between two positions and returns the full path geometry together with the distance and travel time. Routing is done with the open source OSRM routing engine on OpenStreetMap data.
This can provide a route geometry for an application or a one-off check. It is not a fleet-wide route optimizer and does not account for business constraints unless those are represented by the supported routing profile and inputs. Check the returned route against operational needs.
Input format and a worked example
Write every position as latitude, longitude in decimal degrees.
For example, the start 55.6761, 12.5683 in Copenhagen and the end
53.5511, 9.9937 in Hamburg. To force the route through a place,
add it as a via point, one per line, in the order you want to pass them.
Select Car and WKT to get an output like this shortened route result:
Input:
Start: 55.6761, 12.5683
End: 53.5511, 9.9937
Mode: Car
Output:
Distance: calculated route distance in km
Travel time: calculated duration in minutes
LINESTRING (12.5683 55.6761, ... , 9.9937 53.5511)
The route coordinates between the endpoints, distance and travel time are calculated from current routing data and may change.
How to plan a route
- Enter the start and end positions.
- Optionally add via points and choose the travel mode.
- Choose an output format and select Plan route.
- Check the route on the map, then copy or download it.
Output formats
GeoJSON returns a Feature with a LineString geometry in
[longitude, latitude] order. Lua returns a table with the
coordinates, distance and duration. WKT returns a LINESTRING,
and the JSON option returns a simple list of coordinates.
Related tools
Find out which countries the route crosses with the route analyzer, or automate route planning through the Geospatial Toolbox API.
Frequently asked questions
How do I enter coordinates?
Write each position as latitude, longitude in decimal degrees, for example 55.6761, 12.5683. Via points go on separate lines.
What are via points?
Via points are positions the route must pass through, in the order you list them, between the start and the end.
Which output formats are available?
The route can be returned as a GeoJSON LineString Feature, a Lua table, WKT or a plain JSON list of coordinates in [longitude, latitude] order.
Can I plan routes in my own application?
Yes. Route planning is available through our API.
Use this capability in your application
Plan routes in your own application: the route planning endpoint of our geospatial API calculates routes with via points and returns them as GeoJSON, Lua, WKT or JSON.