OSRMRoute

Snap to Road API

GPS

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
ParameterTypeStatus
pointstringRequired
profilestringOptional

Example request

Credit cost: 1 credit
curl "https://osrmroute.com/api/1/snap?point=40.3778,49.8517&point=40.3801,49.8600&key=YOUR_KEY"

Other services