开发者

Is it possible to locate a place in India based on Pincode(627357) in google maps

I am开发者_运维问答 trying to implement a search option in my google map using pincode... Is it possible? Any suggestion....


Is this what you want? The Zip Code shown is in Madison, Wisconsin:

maps.google.com/maps?q=53711

I imagine you are using some other method, but without more details this is by best guess.


I know its late to answer the question, but it may help others who search for it. Go to geonames.org. They do have an api to get location information from postal codes. The response contains latitude and longitude information. You can use this information to put on the map.

Below is a sample request and response:

Request: http://api.geonames.org/postalCodeLookupJSON?postalcode=627357&username=demo&country=IN

The following is the response:

{
  "postalcodes": [{
    "adminName2": "Tirunelveli",
    "adminName3": "Tirunelveli",
    "postalcode": "627357",
    "adminCode1": "25",
    "countryCode": "IN",
    "lng": 77.38515755863037,
    "placeName": "Karaiyiruppu",
    "lat": 9.042148763528974,
    "adminName1": "Tamil Nadu"
  }, {
    "adminName2": "Tirunelveli",
    "adminName3": "Tirunelveli",
    "postalcode": "627357",
    "adminCode1": "25",
    "countryCode": "IN",
    "lng": 77.38515755863037,
    "placeName": "Nanajankulam",
    "lat": 9.042148763528974,
    "adminName1": "Tamil Nadu"
  }, {
    "adminName2": "Tirunelveli",
    "adminName3": "Tirunelveli",
    "postalcode": "627357",
    "adminCode1": "25",
    "countryCode": "IN",
    "lng": 77.38515755863037,
    "placeName": "Naranammalpuram",
    "lat": 9.042148763528974,
    "adminName1": "Tamil Nadu"
  }, {
    "adminName2": "Tirunelveli",
    "adminName3": "Tirunelveli",
    "postalcode": "627357",
    "adminCode1": "25",
    "countryCode": "IN",
    "lng": 77.38515755863037,
    "placeName": "Pallaikottai",
    "lat": 9.042148763528974,
    "adminName1": "Tamil Nadu"
  }, {
    "adminName2": "Tirunelveli",
    "adminName3": "Tirunelveli",
    "postalcode": "627357",
    "adminCode1": "25",
    "countryCode": "IN",
    "lng": 77.38515755863037,
    "placeName": "Sankarnagar",
    "lat": 9.042148763528974,
    "adminName1": "Tamil Nadu"
  }, {
    "adminName2": "Tirunelveli",
    "adminName3": "Tirunelveli",
    "postalcode": "627357",
    "adminCode1": "25",
    "countryCode": "IN",
    "lng": 77.38515755863037,
    "placeName": "Tenkulam",
    "lat": 9.042148763528974,
    "adminName1": "Tamil Nadu"
  }]
}
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜