开发者

Finding whether two geo-coordinates lie on the same road

开发者 https://www.devze.com 2022-12-25 20:17 出处:网络
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

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

精彩评论

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