我想提供特定区域名称提供该地区的pincode [英] i want specific area name provided pincode of that area

查看:110
本文介绍了我想提供特定区域名称提供该地区的pincode的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要将区域和城市的名称作为参数传递给邮政编码。

I need name of an area and city I pass the postal code as a parameter.

例如,我尝试了

For example I tried


http://maps.google.com/maps/api/geocode/ json?address = 382340& components = country:in& sensor = false

代表印度的邮政编码

尽管这会给多个结果提供不相关的数据。我可以使用地理编码API获取坐标。我不需要坐标,只需要与邮政编码对应的区域名称。如何才能做到这一点?

Although this is giving multiple results with irrelevant data. I could get coordinates using the geocode API. I do not need coordinates though, just the area name corresponding to the postal code. How can I achieve this?

推荐答案

试试这个

Try this

http://maps.google.com/maps/api/geocode/json?address=india&components=postal_code:400003&sensor=false

这将返回正确的结果,可以进一步修剪以获取相关数据。

This returns the correct results, which could be further trimmed to get the relevant data.

这篇关于我想提供特定区域名称提供该地区的pincode的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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