osrmroute

OSRM Snap to Road API

GPS

Hosted OSRM (Open Source Routing Machine) — a production API without self-hosting.

Snap noisy GPS coordinates onto the nearest point of the real road network.

GET/api/1/snap

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

OSRMRoute Support

Talk directly to our team

HERE TO HELP

How can we help?

Send a message. Ticket replies are also sent to your verified email.

Your chats

Your chats will appear here.