Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a gps device that does not output very accurate gps positions.

How can I round those coordonates so that they will match the street course and not buildings etc ?

I want to draw a route on google maps but the line strikes buildings etc. I don't want that i just want a route on the street.


share|improve this question

What you are searching for is Map Matching. The point is, that you are not "rounding" the coordinates but searching for the nearest point on a street. There is no Google API that offers exactly that, but the Directions API offers a way to calculate a route with given Waypoints.

This Question on Stackoverflow describes a way to do that:

I hope this helps, B.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.