OSRM Snap to Road API
GPSHosted OSRM (Open Source Routing Machine) — production-ready API, no self-hosting.
Snap noisy GPS coordinates onto the nearest point of the real road network.
Overview
The Snap to Road API takes raw, imprecise GPS points and snaps each one to the closest position on the road network. Perfect for cleaning up tracking data before display, matching pins to streets, or preparing coordinates for routing.
API reference
GET
/api/1/snap| Parameter | Type | Status |
|---|---|---|
| point | string | Required |
| profile | string | Optional |
Example request
Credit cost: 1 creditcurl "https://osrmroute.com/api/1/snap?point=40.3778,49.8517&point=40.3801,49.8600&key=YOUR_KEY"
Other services
Routing APIRoute Optimization APIGeocoding APIPlaces APIMatrix APIIsochrones APIMap Matching APINearest APITrip API (TSP)Location ClusteringDirections APIAlternative Routes APIAutocomplete APIBatch Geocoding APITimezone APIElevation APIBoundary Lookup APIGeofencing APIElevation Profile APISolar APIGeometry Utilities APICoordinate Conversion APICountry Info API