开发者

Finding whether two geo-coordinates lie on the same road

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 soluti开发者_如何转开发on doesnt sem to work :( Cheers Amarsh


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).

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜