GraphHopper

API

Hosted route optimization API for multi-stop, multi-vehicle delivery routes

Price
Free non-commercial plan; paid plans
Access
API key as key query parameter

About

Hosted Directions API whose Route Optimization endpoint assigns and orders stops for one or many vehicles with time windows, capacities and skills, plus routing, matrix and geocoding APIs on OpenStreetMap and TomTom data. The free plan is non-commercial (5 locations, 1 vehicle); paid from €69/month.

What you can do with it

  • Plan delivery routes for a fleet of vans with time windows and capacities
  • Find the best stop order for a single driver's daily deliveries
  • Compute routes and travel-time matrices on OpenStreetMap data

Get started

  1. Create an account and an API key
  2. POST vehicles and services to /vrp for small problems
  3. Use /vrp/optimize and poll the solution for larger ones

Example

curl -X POST "https://graphhopper.com/api/1/vrp?key=$GRAPHHOPPER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "vehicles": [{"vehicle_id": "van-1", "start_address": {"location_id": "depot", "lon": 13.406, "lat": 52.537}}],
    "services": [
      {"id": "stop-1", "address": {"location_id": "a", "lon": 13.375, "lat": 52.519}},
      {"id": "stop-2", "address": {"location_id": "b", "lon": 13.435, "lat": 52.501}}
    ]
  }'

Details

Hosting
Hosted service
Available in
Worldwide
Official SDKs
JavaScript/TypeScript
MCP server
None

Tasks

Alternatives

Other tools for the same tasks.

Last checked on .