通过给邮政编码获取地名 [英] Get location name by giving ZIP codes
本文介绍了通过给邮政编码获取地名的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我需要当用户输入一个邮政编码,显示的位置和城市名称。我如何得到相应的位置名称?
I need to display the location and city name when a user enters a ZIP Code. How do I get the corresponding location names?
推荐答案
我会用像
http://www.zipinfo.com/search/zipcode.htm
和只发送邮编到,检索输入,解析了城市名称,容易一点。
and just send the zipcode to that, retrieve the input, parse for the city name, easy as that.
这篇关于通过给邮政编码获取地名的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文