我想要特定的区域名称提供该区域的密码

nir*_*wal 3 google-maps postal-code geocode

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

比如我试过了

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

在印度的邮政编码.

虽然这会给无关数据带来多重结果.我可以使用地理编码API获取坐标.我不需要坐标,只需要与邮政编码对应的区域名称.我怎样才能做到这一点?

ada*_*rsh 6

试试这个

http://maps.google.com/maps/api/geocode/json?address=india&components=postal_code:400003&sensor=false
Run Code Online (Sandbox Code Playgroud)

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