Snap to Road API
GPSSnap 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"