Migrate to the new Place Data Fields in the Places SDK for Android 4.0
Stay organized with collections
Save and categorize content based on your preferences.
In version 4.0 of
Places SDK for Android, several of the Place data fields
(Place.Field)
changed. The old fields have been deprecated and will continue to work until
they are removed, in accordance with the Google Maps Platform Terms of
Service. However,
apps that include deprecated fields will return build warnings. In addition, new
Place data fields were added in version 4.0. The following sections provide
details on field changes and new fields, as well as field usage, billing, and
pricing.
Field changes and deprecations in version 4.0
The following table lists the deprecated fields and their replacements:
Deprecated field
New field
Place.Field.ADDRESS
Place.Field.FORMATTED_ADDRESS
Place.Field.ICON_URL
Place.Field.ICON_MASK_URL
Place.Field.LAT_LNG
Place.Field.LOCATION
Place.Field.NAME
Place.Field.DISPLAY_NAME
Place.Field.PHONE_NUMBER
Place.Field.INTERNATIONAL_PHONE_NUMBER
Place.Field.USER_RATINGS_TOTAL
Place.Field.USER_RATING_COUNT
Place.Field.WHEELCHAIR_ACCESSIBLE_ENTRANCE
Place.Field.ACCESSIBILITY_OPTIONS
New fields introduced in version 4.0
The following Place data fields have been added in version 4.0 of the
Places SDK for Android:
Place.Field.ACCESSIBILITY_OPTIONS
Place.Field.ADR_FORMAT_ADDRESS
Place.Field.ALLOWS_DOGS
Place.Field.CURRENT_SECONDARY_OPENING_HOURS
Place.Field.EV_CHARGE_OPTIONS
Place.Field.FUEL_OPTIONS
Place.Field.GOOD_FOR_CHILDREN
Place.Field.GOOD_FOR_GROUPS
Place.Field.GOOD_FOR_WATCHING_SPORTS
Place.Field.GOOGLE_MAPS_URI
Place.Field.LIVE_MUSIC
Place.Field.MENU_FOR_CHILDREN
Place.Field.NATIONAL_PHONE_NUMBER
Place.Field.OUTDOOR_SEATING
Place.Field.PARKING_OPTIONS
Place.Field.PAYMENT_OPTIONS
Place.Field.PRIMARY_TYPE_DISPLAY_NAME
Place.Field.RESOURCE_NAME
Place.Field.RESTROOM
Place.Field.SERVES_COCKTAILS
Place.Field.SERVES_COFFEE
Place.Field.SERVES_DESSERT
Place.Field.SHORT_FORMATTED_ADDRESS
Place.Field.SUB_DESTINATIONS
Data field usage, billing, and pricing
For more information about using Place data fields to create field masks, as
well as about billing and pricing for each field and its corresponding SKU, see
the following resources:
[[["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-03-01 UTC."],[[["Version 4.0 of the Places SDK for Android introduces new Place data fields and deprecates old ones, requiring updates to avoid build warnings and ensure future compatibility."],["Deprecated fields, such as `Place.Field.ADDRESS` and `Place.Field.LAT_LNG`, have been replaced with new fields like `Place.Field.FORMATTED_ADDRESS` and `Place.Field.LOCATION` respectively."],["A significant number of new Place data fields have been added in version 4.0, including options for accessibility, amenities, and operational details."],["Developers should consult the provided resources for details on using Place data fields, understanding billing implications, and accessing pricing information for each field."]]],["Version 4.0 of the Places SDK for Android introduced changes to Place data fields. Seven fields were deprecated, such as `ADDRESS` replaced by `FORMATTED_ADDRESS`, and `NAME` replaced by `DISPLAY_NAME`. Twenty-four new fields were added, including `ACCESSIBILITY_OPTIONS`, `FUEL_OPTIONS`, `PAYMENT_OPTIONS`, and `RESOURCE_NAME`. Deprecated fields will still function until removal, but will generate build warnings. Changes impact both Places SDK and Places SDK (New). For usage, billing, and pricing information refer to linked documentation.\n"]]