Google Places · Example Payload

Suggestion Example

RestaurantGeolocationGoogleLocationsMapsPlacesPoints of Interest

Suggestion Example is an example object payload from Google Places, with 2 top-level fields. It illustrates the shape of data this provider's APIs accept or return.

Top-level fields

placePredictionqueryPrediction

Example Payload

Raw ↑
{
  "placePrediction": {
    "place": "places/ChIJN1t_tDeuEmsRUsoyG83frY4",
    "placeId": "ChIJN1t_tDeuEmsRUsoyG83frY4",
    "text": {
      "text": "Google Building 40",
      "languageCode": "en"
    },
    "structuredFormat": {
      "mainText": {
        "text": "Google Building 40",
        "languageCode": "en"
      },
      "secondaryText": {
        "text": "Google Building 40",
        "languageCode": "en"
      }
    }
  },
  "queryPrediction": {
    "text": {
      "text": "Google Building 40",
      "languageCode": "en"
    }
  }
}