Wednesday 22 June 2016

Images & Photos of any place by google map api by help of place id

Place Details : Photos :Get all detail of place 
    Url : https://maps.googleapis.com/maps/api/place/details/json?

Parameters:
    Key : 
    placeid:

In this you find photos section in this multiple photo reference, so yous photo reference for multiple photos of particular place 
Example :
https://maps.googleapis.com/maps/api/place/details/json?placeid=ChIJN1t_tDeuEmsRUsoyG83frY4&key=AIzaSyBQTJTC7PascS0AbofP3vpp1Gco1IwzT0I




Photo by Photo reference api :
  URL:  https://maps.googleapis.com/maps/api/place/photo?
 Parameters :
     photoreference= photoReference which you get by above api
      key = your api key

   
    https://maps.googleapis.com/maps/api/place/photo?maxwidth=800&photoreference=CoQBcwAAAFRI5EbEzRutiPPsprMkDl2WToZPWwTnqJ2yJA_uKIDg_TvB6nFkDoAw6GzNngziYnz4H5Tz9jhU1V2O_lMv_D0GYfTTj5rZZyyGaKJLf35t98v9O8_JMgm_F-SURIEvN1-tHR3uTWfmbFoPLvv6dKgwYBCJEQCdiR0bFyfGJNdCEhBPuaMp1pRZP74D1rW3bhRdGhSShNxFRHzIKX3RE7MBJI0LaiuaTw&key=AIzaSyA1Fc25WushvnP29dcmY-DzEPhGhoQHvb0

Google Places : List all restaurant by geolocation or latitude on logitude by google map api

1. List address : placesapi.blogspot.com/2016/06/google-api-list-all-citiys-address.html





2. Retrieve geo-location (latitude,longitude) by google map api so use :
https://maps.googleapis.com/maps/api/geocode/json?
Parameter :  Key =
  address =

Example:
https://maps.googleapis.com/maps/api/geocode/json?key=AIzaSyBkuOd8bHJXpiHvtrJt3kLLuKi2-VyIio4&6 &address=Vicenza, Province of Vicenza, Italy




 3. List all near by places by types by google place api:

URL :https://maps.googleapis.com/maps/api/place/nearbysearch/xml?

Parameter:
   Key = Your API Key
   location = latitude, longitude
   type = restaurant| hospital | school




Example:
https://maps.googleapis.com/maps/api/place/nearbysearch/xml?key=AIzaSyBkuOd8bHJXpiHvtrJt3kLLuKi2-VyIio4&62&location=-33.8670522,151.1957362&radius=500&type=restaurant




4. Place Details : Photos :Get all detail of place 
    Url : https://maps.googleapis.com/maps/api/place/details/json?

Parameters:
    Key : 
    placeid:


Example :
https://maps.googleapis.com/maps/api/place/details/json?placeid=ChIJN1t_tDeuEmsRUsoyG83frY4&key=AIzaSyBQTJTC7PascS0AbofP3vpp1Gco1IwzT0I 

   

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