Migrate to the new Place Data Fields in the Places SDK for Android 4.0

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: