如何通过iPhone应用程序查找有关邮政编码的城市名称 [英] How to find city name with respect to the zip code through iphone applications

查看:232
本文介绍了如何通过iPhone应用程序查找有关邮政编码的城市名称的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我通过iPhone应用程序提供邮政编码时,谁能帮助我在地图上找到城市名称.

Can any one help me in finding the city name in the map when I give zipcode through iPhone application.

推荐答案

正如Deepak所建议的那样,地理编码API几乎肯定是必经之路. Google和Yahoo都提供了不错的工具,可以将邮政编码转换为城市名称.

As Deepak suggested, a Geocoding API is almost certainly the way to go. Google and Yahoo both provide good ones that can convert zipcodes into city names.

这是Google的邮政编码查询示例: http: //maps.googleapis.com/maps/api/geocode/json?address=77048&sensor=true

Here's a sample Google query for zipcode: http://maps.googleapis.com/maps/api/geocode/json?address=77048&sensor=true

和一个示例Yahoo查询邮政编码: http://where.yahooapis. com/geocode?q = 77048& appid = 0

And a sample Yahoo query for zipcode: http://where.yahooapis.com/geocode?q=77048&appid=0

这篇关于如何通过iPhone应用程序查找有关邮政编码的城市名称的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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