Snapping GPS track to OSM roads

Do you know if such tool exists? What I want is to convert GPX file so it goes over a road. For example I have GPS track with points measured every 500 meters (so there are straight lines going between them) but in reality I moved over a road and I’d like the track to represent it.

Search for map-matching. Graphhopper at least have such algorithms.

Thanks for pointing to the right keyword. It seems Graphooper does it. Pitty it doesn’t seem to be deployed somewhere for free and easy use.

Try mapzen’s map matching they recently added. I think there is a free trial implementation. allows you to draw a track, using Graphhopper’s algorithm to snap to roads. AFAIK, it does not use an existing GPS-track.