{
  "opencollection": "1.0.0",
  "info": {
    "name": "Google Maps Places API (New)",
    "version": "1.0"
  },
  "request": {
    "auth": {
      "type": "apikey",
      "key": "X-Goog-Api-Key",
      "value": "{{X-Goog-Api-Key}}",
      "placement": "header"
    }
  },
  "items": [
    {
      "info": {
        "name": "Place Details",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Get Details About a Place",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://places.googleapis.com/v1/places/:placeId",
            "headers": [
              {
                "name": "X-Goog-FieldMask",
                "value": "places.displayName,places.formattedAddress,places.location"
              }
            ],
            "params": [
              {
                "name": "placeId",
                "value": "ChIJN1t_tDeuEmsRUsoyG83frY4",
                "type": "path",
                "description": "The resource name of a place in the format places/{placeId}."
              },
              {
                "name": "languageCode",
                "value": "en",
                "type": "query",
                "description": "The language code (BCP-47) to use for returning results. If not specified, results may be in mixed languages."
              },
              {
                "name": "regionCode",
                "value": "US",
                "type": "query",
                "description": "The Unicode country/region code (CLDR) of the location where the request is coming from. Used for formatting and biasing."
              },
              {
                "name": "sessionToken",
                "value": "",
                "type": "query",
                "description": "A random string that groups an autocomplete session for billing. The session begins with an autocomplete request and concludes with a place details or address validation call."
              }
            ]
          },
          "docs": "Returns detailed information about a place identified by its resource name. Use the fieldMask parameter to specify which fields to return. Only fields specified in the field mask are returned; requesting fewer fields reduces cost and improves performance."
        }
      ]
    },
    {
      "info": {
        "name": "Text Search",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Search for Places Using a Text Query",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://places.googleapis.com/v1/places:searchText",
            "headers": [
              {
                "name": "X-Goog-FieldMask",
                "value": "places.displayName,places.formattedAddress,places.location"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Returns a list of places matching a text query. You can use natural language queries such as \"pizza in New York\" or \"shoe stores near Burlington\". The service responds with a list of places matching the text string and any location bias or restriction that has been set. The service is especially useful for making ambiguous address queries in an automated system."
        }
      ]
    },
    {
      "info": {
        "name": "Nearby Search",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Search for Places Near a Location",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://places.googleapis.com/v1/places:searchNearby",
            "headers": [
              {
                "name": "X-Goog-FieldMask",
                "value": "places.displayName,places.formattedAddress,places.location"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Returns a list of places near a specified location. You can refine results by specifying included types, excluded types, primary types, and ranking preferences. A location restriction (circle) is required."
        }
      ]
    },
    {
      "info": {
        "name": "Autocomplete",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Get Place Autocomplete Predictions",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://places.googleapis.com/v1/places:autocomplete",
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Returns predictions for the given input text. Predictions include place predictions and query predictions. Use session tokens to group autocomplete requests for billing purposes."
        }
      ]
    },
    {
      "info": {
        "name": "Photos",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Get a Place Photo",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://places.googleapis.com/v1/places/:placeId/photos/:photoReference/media",
            "params": [
              {
                "name": "placeId",
                "value": "500123",
                "type": "path",
                "description": "The place ID"
              },
              {
                "name": "photoReference",
                "value": "example_value",
                "type": "path",
                "description": "The photo resource reference"
              },
              {
                "name": "maxHeightPx",
                "value": "10",
                "type": "query",
                "description": "Maximum height of the image in pixels. Must be between 1 and 4800. If maxHeightPx is set without maxWidthPx, the image is resized to the specified height, preserving aspect ratio."
              },
              {
                "name": "maxWidthPx",
                "value": "10",
                "type": "query",
                "description": "Maximum width of the image in pixels. Must be between 1 and 4800. If maxWidthPx is set without maxHeightPx, the image is resized to the specified width, preserving aspect ratio."
              },
              {
                "name": "skipHttpRedirect",
                "value": "true",
                "type": "query",
                "description": "If set to true, skip the default HTTP redirect behavior and return a JSON response containing the photo URI."
              }
            ]
          },
          "docs": "Returns a photo for a place. After you get the photo resource name from a Place Details or Search response, use this endpoint to get the photo bytes. Specify maxHeightPx or maxWidthPx (or both) to control the image dimensions."
        }
      ]
    }
  ],
  "bundled": true
}