Migrate from Place Photo (Legacy) to Place Photo (New) 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, seeEnable APIs.
Places SDK for Android supportsPlace 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, seePlaces 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 photosize 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.For more information, seeUse API Keys.
Pass to the request an object of the new
FetchResolvedPhotoUriRequestclass.Each photo in the response is represented by a
PhotoMetadataobject. For Places SDK for Android (New) thePhotoMetadataobject contains a newPhotoMetadata.getAuthorAttributions()method that returns an object of typeAuthorAttributions.If the returned
PhotoMetadataobject includes any attributions or authorattribution, you must include these attributions in yourapplication wherever you display the image. See the documentation onattributions.To access the new author attributions in
PhotoMetadatayou must initializeyour app by calling thePlaces.initializeWithNewPlacesApiEnabled()method. For more information on selecting the Places API service, seeSet up your Google Cloud project.
Example request
For a complete example, seePlace Photos (New).
Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-11-21 UTC.