Skip to content

Google Maps API: /find

Find Place request accepts a text input and returns a corresponding place. The input can be any type of place-related text, such as a name, address, or phone number. The request must be a string; using non-string data like latitude/longitude coordinates or a plus code will result in an error.

Request:
curl -L -X GET 'https://api.domain.com/find?input=Museum%20of%20Contemporary%20Art%20Australia&inputtype=textquery&fields=formatted_address%2Cname%2Crating%2Copening_hours%2Cgeometry'

Return:
{
  "candidates":
    [
      {
        "formatted_address": "140 George St, The Rocks NSW 2000, Australia",
        "geometry":
          {
            "location": { "lat": -33.8599358, "lng": 151.2090295 },
            "viewport":
              {
                "northeast":
                  { "lat": -33.85824377010728, "lng": 151.2104386798927 },
                "southwest":
                  { "lat": -33.86094342989272, "lng": 151.2077390201073 },
              },
          },
        "name": "Museum of Contemporary Art Australia",
        "opening_hours": { "open_now": false },
        "rating": 4.4,
      },
    ],
  "status": "OK",
}

Leave a Reply

Your email address will not be published. Required fields are marked *