How do I determine if an address is inside some boundaries on a map?

怎甘沉沦 提交于 2019-12-12 09:05:45

问题


I am doing some initial research this and I know very little about the subject. I need to create a solution that can take an address and then determine if that address is within some predefined boundaries (probably a series of connected streets). Does anybody have some advice on where to get started?


回答1:


First you need to geocode the address (http://code.google.com/apis/maps/documentation/geocoding/), then you can use my point in polygon library to check if it is in the bounds. Check it out here: http://blog.appdelegateinc.com/point-in-polygon-checking-with-google-maps.html

Update: Check out the comments for someone who updated it to work with v3.



来源:https://stackoverflow.com/questions/4090051/how-do-i-determine-if-an-address-is-inside-some-boundaries-on-a-map

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!