使用INDIA中的PIN码在Google地图上找到地点

时间:2014-02-25 06:54:04

标签: android maps android-mapview

我试图使用PIN码在Google地图上找到地点,所以我的问题是,是否可以在印度使用PIN码在Google地图上找到地点?

2 个答案:

答案 0 :(得分:2)

您需要使用Google地图中的地理编码服务:)

Here's the documentation

This example,一个可以用作应用程序起点的简单方法:)

答案 1 :(得分:0)

你可以使用

https://maps.googleapis.com/maps/api/geocode/json?key={API_KEY}&components=postal_code:110011

如果您对获得州和地区更感兴趣,可以使用

https://api.postalpincode.in/pincode/110011

这将产生类似这样的东西,并且可以免费使用

[
  {
    "Message": "Number of pincode(s) found:3",
    "Status": "Success",
    "PostOffice": [
      {
        "Name": "Nirman Bhawan",
        "Description": null,
        "BranchType": "Sub Post Office",
        "DeliveryStatus": "Delivery",
        "Circle": "Delhi",
        "District": "Central Delhi",
        "Division": "New Delhi Central",
        "Region": "Delhi",
        "Block": "New Delhi",
        "State": "Delhi",
        "Country": "India",
        "Pincode": "110011"
      },
      {
        "Name": "South Avenue",
        "Description": null,
        "BranchType": "Sub Post Office",
        "DeliveryStatus": "Non-Delivery",
        "Circle": "Delhi",
        "District": "Central Delhi",
        "Division": "New Delhi Central",
        "Region": "Delhi",
        "Block": "New Delhi",
        "State": "Delhi",
        "Country": "India",
        "Pincode": "110011"
      },
      {
        "Name": "Udyog Bhawan",
        "Description": null,
        "BranchType": "Sub Post Office",
        "DeliveryStatus": "Non-Delivery",
        "Circle": "Delhi",
        "District": "Central Delhi",
        "Division": "New Delhi Central",
        "Region": "Delhi",
        "Block": "New Delhi",
        "State": "Delhi",
        "Country": "India",
        "Pincode": "110011"
      }
    ]
  }
]