php代码使用pincode查找城市,州和国家名称

Is there any API or anything which provides city,state and country name when pincode is given.Please share if you have any solution

Thanks in Advance

Use the GeoCoding API

For example, to lookup zip 626134 use a request like this:

http://maps.googleapis.com/maps/api/geocode/json?address=626134&sensor=true

Hello. there are many more sites which provides this kind of information i will show you two of them.

  1. Third Party API

  2. Google API

try this url with your pincode. this will gives you data in json format like below one. i have removed some of data to show you so it was not exactly as per return response of third party api.

{
    "Message": "Number of Post office(s) found: 1",
    "Status": "Success",
    "PostOffice": [     
        {
            "Name": "I E Bapunagar",
            "Description": "",
            "BranchType": "Sub Post Office",
            "DeliveryStatus": "Delivery",
            "Taluk": "Ahmadabad City",
            "Circle": "Ahmadabad City",
            "District": "Ahmedabad",
            "Division": "Ahmedabad City",
            "Region": "Ahmedabad HQ",
            "State": "Gujarat",
            "Country": "India"
        }
    ]
}

check it, and if you want any help,you can ask.