views:

43

answers:

1

Hi there, Given two geo-coordinates in (latitude,longitude) format, is it possible to find out if they lie on the same road? I want to do this programatically not visually. I can perhaps extract addresses and compare the street name, but since streets can change names over a long distance, this solution doesnt sem to work :( Cheers Amarsh

+1  A: 

As I mentioned in my comment, you could try use routing to determine if a path is "straight" or would require multiple turns.

As for doing it programmatically, you could use Google's map API to request the route. Documentation for this process is located here and an example is located here (just use View Source in your browser to examine the code).

Michael Todd