
The response of a successful Place Photo request will be an image. &key=YOUR_API_KEY Note: You'll need to replace the API key in this example in order for the &photo_reference=Aap_uEA7vb0DDYVJWEaX3O-AtYp77AaswQKSGtDaimt3gt7QCNpdjp1BkdM6acJ96xTec3tsV_ZJNL_JP-lqsVxydG3nh739RE_hepOOL05tfJh2_ranjMadb3VoBYFvF0ma6S24qZ6QJUuV6sSRrhCskSBP5C1m圜zsebztMfGvm7ij3gZT Image, resizing it so that it is at most 400 pixels wide.

"photo_reference" : "CnRvAAAAwMpdHeWlXl-lH0vp7lez4znKPIWSWvgvZFISdKx45AwJVP1Qp37YOrH7sqHMJ8C-vBDC546decipPHchJhHZL94RcTUfPa1jWzo-rSHaTlbNtjh-N68RkcToUCuY9v2HNpo5mziqkir37WU8FJEqVBIQ4k938TI3e7bf8xq-uwDZcxoUbO_ZJzPxremiQurAYzCTwRhE_V0"Īn example request is shown below. Includes a value in the html_attributions field, you must include theĪdditional attribution in your application wherever you display the image.Īn example of a photos array is shown below.

Photos can be used without attribution, or will have the required attribution Including business owners and user contributed photos. Photos returned by the Photo service are sourced from a variety of locations, Thisįield will always be present, but may be empty. html_attributions - contains any required attributions.width - the maximum width of the image.height - the maximum height of the image.photo_reference - a string used to identify the photo when you.A Place Details request returns up to ten photo elements.Įach photo element will contain the following fields:.A Find Place, Nearby Search, or Text Search request returns at most one photo element.Note: The number of photos returned varies by request. The response to these requests will contain a photos field if the Returned in the response to a Find Place, Nearby Search, Text Search, or Place Details Smaller of the two dimensions, restricted to its original aspect ratio.īoth the maxheight and maxwidth propertiesĮdit Edit bug_report Report bug Photo referencesĪll requests to the Place Photo service must include a photoreference, If the image is larger in either dimension, it will be scaled to match the Is smaller than the values specified, the original image will be returned. Specifies the maximum desired width, in pixels, of the image. Maxwidth properties accept an integer between Match the smaller of the two dimensions, restricted to its original aspect If the image is larger in either dimension, it will be scaled to Image is smaller than the values specified, the original image will be Specifies the maximum desired height, in pixels, of the image. Returned from either a Place Search or Place Details request. List of parameters and their possible values are enumerated below.Ī string identifier that uniquely identifies a photo. In URLs, all parameters are separated using the ampersand ( &) character. The referenced photos and resize the image to the optimal size for yourĪ Place Photo request is an HTTP URL of the following form:Ĭertain parameters are required to initiate a search request. Using the Photo service you can then access

Find Place, Nearby Search, and Text Search requests also return a single photo When you get place information using a Placeĭetails request, photo references will be returned for relevant photographicĬontent. The Place Photo service gives you access to the millions of photos

Only API that allows you to add high quality photographic content to yourĪpplication. The Place Photo service, part of the Places API, is a read. Looking to use this service in a JavaScript application? Take The Places API and the client libraries are for Python Client, Go Client and Node.js Client for Google Maps Services. The Places API is also available with the
#Google geophotos android
Select platform: Android iOS JavaScript Web Service Note: Server-side
