Routing
Get detailed information about a routes and directions.
Car routing
Precise car routing based on high quality data delivered in ms. Distance API currently uses OSRM routing engine with OpenStreetMap data to calculate route distance and duration. Soon you will be able to choose also other providers like Google Maps and Mapbox for car routing as well as other routing profiles like Truck, Walk or Bike.
routing/carExample result
{
"route": {
"car": {
"distance": 466.1034, // car routing distance in Kilometer
"duration": 18095.3 // car routing duration in Seconds
}
Under the hood
Soon: More profiles like bike, walk and truck
Maritime routing
Maritime Route feature employs advanced geospatial algorithms to facilitate efficient routing and distance computation between sea ports. The maritime route distance API can also snap arbitrary locations to the nearest sea route vertex.
routing/maritimeMaritime sea routing based on Eurostat data combined with modern geospatial algorithms empowering the Maritime routing API.
Example data
"route": {
"sea": {
"distanceNM": 268.131303044648, // maritime route distance in Nautical miles
"distance": 496.5789924839348, // maritime route distance in Kilometer
"duration": 13.4065651522324 // maritime travel time in Hours
}
}
}
Flatbush, the really fast static spatial index helps to snap any input location to the nearest sea routes vertex. This helps you to calculate maritime routes even if your input data does not reflect ports or maritime locations.
Under the hood
Eurostat maritime data
Dijkstra's algorithm
Flatbush spatial index
Last updated