使用邮政编码,城市或坐标查找位置 [英] Find locations using zip codes, cities or coordinates

查看:160
本文介绍了使用邮政编码,城市或坐标查找位置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要编码一个半径为X km的城市发现者。使用邮政编码或城市的特定人群。例如:

 
输入邮政编码或城市:[]
选择以公里为单位的半径。 (10)(20)(30)
------------------------------------- ------
[提交]

所以我需要一个与邮政编码,坐标和城市名称相关的数据库。 (不适用于美国,德国)
任何人都知道吗?或准备使用网络服务或任何让我更早去海滩的东西?



THX .-

解决方案

我刚发现这个:



http://api.geonames.org/findNearbyPostalCodes?postalcode=8775&country=CH&radius=10&username=demo



http:// www .geonames.org / export / client-libraries.html (几个客户端库来请求geonames服务)

正是我想要的圣诞节。
THX .-


I need to code a finder of cities in a radius of X km. of a given one using a ZIP code or a city. Something like this:

Enter ZIP code or city: [            ]
Choose Radius in Km.    (10) (20) (30)
-------------------------------------------
[ Submit ]

So I need a database relating zip codes, coordinates and city names. (not for USA, Germany) Anyone know of any? Or a ready to use web service or whatever that allow me go to the beach earlier?

THX.-

解决方案

I just found this:

http://api.geonames.org/findNearbyPostalCodes?postalcode=8775&country=CH&radius=10&username=demo

http://www.geonames.org/export/client-libraries.html (several client libraries to request geonames service)

Exactly what I want for Christmas. THX.-

这篇关于使用邮政编码,城市或坐标查找位置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆