简体   繁体   中英

Get State from City PHP

   Is it possible to find state from city as like we can find city ,address or   
   state from zipcode or latitude longitude..??Is there any API available for  
   that. ?

Actually I want state name by entering city name.May be i am here wrong but just wanted to confirm.

Yes you can use the following API

http://maps.googleapis.com/maps/api/geocode/json?address=mumbai&sensor=false

Open this in your browser and you will see the resultset

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM