GraphHopper
APIHosted route optimization API for multi-stop, multi-vehicle delivery routes
- Erişim
- API key as key query parameter
Hakkında
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.
Neler yapabilirsin
- 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
Başlarken
- Create an account and an API key
- POST vehicles and services to /vrp for small problems
- Use /vrp/optimize and poll the solution for larger ones
Örnek kod
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}}
]
}'Ayrıntılar
- Barındırma
- Hazır hizmet (bulut)
- Kullanılabildiği yerler
- Tüm dünya
- Resmi SDK'lar
- JavaScript/TypeScript
- MCP sunucusu
- Yok