Stay organized with collections Save and categorize content based on your preferences.
This feature requires that you enable Places API (New), the next generation of the Places API. For more information, see Enable APIs.Places SDK for Android supports Place Photo (Legacy). If you are familiar with Place Photo (Legacy), Place Photo (New) makes the following changes:
Uses a new pricing model. For pricing information for all APIs, see Places SDK for Android (New).
Place Photo (Legacy) returns a bitmap image. Place Photo (New) returns a URI to the image.
Place Photo (Legacy) supported a maximum photo size of 1600 by 1600 pixels. Place Photo (New) supports sizes up to 4800 by 4800 pixels.
To make a request, call the new PlacesClient.fetchResolvedPhotoUri()
method.
You can only call the PlacesClient.fetchPhoto()
method if you enable Places API. That method is not available when you only enable Places API (New).
For more information, see Use API Keys.
Pass to the request an object of the new FetchResolvedPhotoUriRequest
class.
Each photo in the response is represented by a PhotoMetadata
object. For Places SDK for Android (New) the PhotoMetadata
object contains a new PhotoMetadata.getAuthorAttributions()
method that returns an object of type AuthorAttributions
.
If the returned PhotoMetadata
object includes any attributions or author attribution, you must include these attributions in your application wherever you display the image. See the documentation on attributions.
To access the new author attributions in PhotoMetadata
you must initialize your app by calling the Places.initializeWithNewPlacesApiEnabled()
method. For more information on selecting the Places API service, see Set up your Google Cloud project.
For a complete example, see Place Photos (New).
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-08-14 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-14 UTC."],[],[]]
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4