Wednesday 22 June 2016

Google Api : List all citiys & address




Url :  https://maps.googleapis.com/maps/api/place/autocomplete/xml? 

Parameters :
    Key = Your API key
    input = name of place or address what you want to search
    types = (cities)
      - diff-diff type pass as per your requirement Types



Example Link : 
https://maps.googleapis.com/maps/api/place/autocomplete/xml?input=Vic&types=(cities)&key=AIzaSyBkuOd8bHJXpiHvtrJt3kLLuKi2-VyIio4




                                                 OR



URL : http://maps.googleapis.com/maps/api/geocode/xml?address=mount

Parameter :
   address= address key what you want to search

Note : In this don't need to pass ApiKey bcz apikey only need for : https



                                                 OR


URL : https://maps.googleapis.com/maps/api/place/textsearch/xml? 
Parameter :
  query=mount
  key=AIzaSyBQTJTC7PascS0AbofP3vpp1Gco1IwzT0I

Optional  parameter is  type 

Example :
https://maps.googleapis.com/maps/api/place/textsearch/xml?query=mou&key=AIzaSyBQTJTC7PascS0AbofP3vpp1Gco1IwzT0I




 


No comments:

Post a Comment