Geometry Utilities API
ToolkitDistanz, Peilung, Fläche, Schwerpunkt, Vereinfachung und Polyline-Encode/Decode — Geometrie als Service.
Überblick
Die Geometry Utilities API ist Geometrie als Service: Distanz und Peilung zwischen Punkten, Zielpunkt aus Peilung und Distanz, Mittelpunkte, Pfadlänge, Polygonfläche, Schwerpunkte, Douglas–Peucker-Vereinfachung und Polyline-Encode/Decode. Ein Endpunkt, Operation per op-Feld. Reine Berechnung, weltweit.
API-Referenz
POST
/api/1/geometry| Parameter | Typ | Status |
|---|---|---|
| op | string | Erforderlich |
| from | array | Optional |
| to | array | Optional |
| path | array | Optional |
| polygon | array | Optional |
Beispielanfrage
Credit-Kosten: 1 creditcurl -X POST "https://osrmroute.com/api/1/geometry?key=YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{"op":"distance","from":[40.37,49.85],"to":[40.40,49.86]}'Weitere Dienste
Routing APIRoute Optimization APIGeocoding APIPlaces APIMatrix APIIsochrones APIMap Matching APINearest APITrip API (TSP)Standort-ClusteringDirections APIAlternative Routes APISnap to Road APIAutocomplete APIBatch Geocoding APITimezone APIElevation APIBoundary Lookup APIGeofencing APIElevation Profile APISolar APICoordinate Conversion APICountry Info API