查找驻留在指定的距离之间的用户(使用用户的拉链code) [英] Find users residing between a specified distance (using user's zipcode)
问题描述
有没有办法找出使用zip code的径向距离?
Is there a way to find the radial distance using the zipcode?
我的任务是搜索所有居住在指定距离的用户。我所知道的ZIP $ C $用户的CS。
My task is to search the all the users residing with in a specified distance. I know the zipcodes of the users.
例如,从当前位置25英里之间的用户。
Eg, users between 25 miles from the current location.
我有其他的搜索类别,为此我使用的MySQL查询。我无法弄清楚什么出格的距离问题。
I have other search categories, for which i am using mysql queries. I am unable to figure anything out for the distance issue.
我的后台是在PHP 和前端Flex中。
My backend is in php and frontend in Flex.
对我来说,最好的办法是类似的东西www.zip- codes.com / zip- code-半径finder.asp的。也就是说,如果我能得到所有的zip- codeS在指定的径向距离可用。所以,我可以在我的数据库比较这zip- codeS的用户zip- codeS。而选择那些用火柴。
The best option for me would be something like that of www.zip-codes.com/zip-code-radius-finder.asp. ie, if I should be able to get all the zip-codes available in the specified radial distance. So i can compare this zip-codes to the users zip-codes in my database. And select the ones with a match.
请帮我出这一点。 Zeeshan
Please help me out with this. Zeeshan
推荐答案
我完成了使用免费的谷歌地图API类似的东西 - 这可能是不够好,使用适合您的需求以及
I accomplished something similar using the free Google Maps API - which may be good enough to use for your needs as well
http://googlemapsapi.blogspot.com/2006/06/地理编码-AT-last.html - 关于这个问题的简短交(2006)
http://googlemapsapi.blogspot.com/2006/06/geocoding-at-last.html - brief post on the subject (from 2006)
HTTP://$c$c.google.com/apis/图/ index.html的 - 谷歌地图API的家
http://code.google.com/apis/maps/index.html - Google Maps API home
这篇关于查找驻留在指定的距离之间的用户(使用用户的拉链code)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!