Distance Tools
StatusDevelopersupload Spreadsheet
  • Welcome
  • Getting Started
    • Quickstart
  • Tools
    • Spreadsheet
      • Getting started
      • Format & input
      • Upload & validation
      • Pricing & Payment
      • FAQ
    • Webapp
      • Scraping
      • Advertisers
    • API
      • Getting started
      • API Reference
        • distance/route
        • distance/route/detailed
        • distance/route/maritime
        • distance/point
        • routing/car
        • routing/maritime
      • Plans & Pricing
      • FAQ
        • Migration guide
    • AI Agent
  • Features
    • Input data
    • Routing
    • Calculation
    • Segmentation
  • Legal
    • Terms of Service
    • Privacy policy
    • Credits
Powered by GitBook
On this page
  • Car routing
  • Example result
  • Under the hood
  • Maritime routing
  • Example data
  • Under the hood
  1. Features

Routing

Get detailed information about a routes and directions.

PreviousInput dataNextCalculation

Last updated 1 month ago

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.

Example 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.

Maritime 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

routing/maritime
routing/car
Project OSRM
routing engine for based car routing
GitHub - StephanGeorg/searoutes-api: Compute shortest maritime routes between two locations.GitHub
Logo
Logo
OSRM
OSM