Google Maps Platform · Example Payload

Google Maps Searchplacestext Example

EnvironmentGeocodingGeolocationMapsNavigationPlacesRoutingSolar

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

Top-level fields

operationIdmethodpathsummaryrequestExamplesresponseExamples

Example Payload

Raw ↑
{
  "operationId": "searchPlacesText",
  "method": "POST",
  "path": "/places:searchText",
  "summary": "Search for Places Using a Text Query",
  "requestExamples": [
    {
      "contentType": "application/json",
      "name": "SearchplacestextRequestExample",
      "example": {
        "textQuery": "example_value",
        "includedType": "example_value",
        "languageCode": "example_value",
        "regionCode": "example_value",
        "rankPreference": "RELEVANCE",
        "maxResultCount": 10,
        "locationBias": {},
        "locationRestriction": {},
        "priceLevels": [
          "PRICE_LEVEL_INEXPENSIVE"
        ],
        "openNow": true,
        "minRating": 42.5,
        "strictTypeFiltering": true
      }
    }
  ],
  "responseExamples": [
    {
      "status": "200",
      "contentType": "application/json",
      "name": "Searchplacestext200Example",
      "example": {
        "places": [
          {
            "name": "Example Title",
            "id": "abc123",
            "types": {},
            "primaryType": "example_value",
            "nationalPhoneNumber": "example_value",
            "internationalPhoneNumber": "example_value",
            "formattedAddress": "example_value",
            "shortFormattedAddress": "example_value",
            "addressComponents": {},
            "rating": 42.5,
            "userRatingCount": 10,
            "googleMapsUri": "https://www.example.com",
            "websiteUri": "https://www.example.com",
            "priceLevel": "PRICE_LEVEL_UNSPECIFIED",
            "businessStatus": "BUSINESS_STATUS_UNSPECIFIED",
            "utcOffsetMinutes": 10,
            "reviews": {},
            "photos": {},
            "adrFormatAddress": "example_value",
            "iconMaskBaseUri": "https://www.example.com",
            "iconBackgroundColor": "example_value",
            "dineIn": true,
            "takeout": true,
            "delivery": true,
            "curbsidePickup": true,
            "reservable": true,
            "servesBreakfast": true,
            "servesLunch": true,
            "servesDinner": true,
            "servesBeer": true,
            "servesWine": true,
            "servesVegetarianFood": true
          }
        ],
        "nextPageToken": "example_value"
      }
    }
  ]
}