How to get a picture of a place from google maps or places API

user975869 picture user975869 · Dec 11, 2011 · Viewed 59.9k times · Source

I'm using Google Places API to retrieve data about places, but couldn't find how to get a picture of that place, Google Places API just provides icon which is not the same. I need the photo you get when you search for a place in Google Maps in a web browser for example. There is usually more pictures from Panoramio, but Panoramio API can only search for pictures by location and not by a particular restaurant or hotel name for example. Any ideas?

Answer

Dylan picture Dylan · Dec 7, 2012

The Places API just added the ability to request photos directly in the API: https://developers.google.com/maps/documentation/javascript/places#places_photos