Wrapper around the Google Maps Nearby Place Search API endpoint.
location
Required
Location to return results for. Values must be supplied: latitude,longitude
api_key
Required
Your Google Maps Places API Key
. If you already have a Google Cloud account, you can retrieve it in your Google Maps API Credentials. If you’re new to Google Cloud, you can sign up for a free Google Maps Places API Key.
If you get the error message This API project is not authorized to use this API
, you may need to check your Google Maps Credentials restrictions, or create a new, unrestricted key to use with our platform (you can always remove it later on).
token
Optional
Used for pagination - leave this blank on the first request and then look for the next_page_token
value in the response to use for getting the next page. Google will only return up to 60 results per search, but you can see how to get around this using our Google Maps Deep Crawl technique.
query
Optional
Text query for the place you’re looking for (e.g. name, address, business type, etc…). If you supply the type
parameter, then this input is optional and will get all the businesses matching the type you provide.
radius
Optional
REQUIRED ONLY if order is set to prominence
, otherwise you must leave this BLANK when using the default order by value of distance
.
The radius to search around the provided location (in meters). Max is 5,000. If rankby
is set to distance
, then leave this blank.
order
Optional
Order to return results in. Can be prominence
or distance
.
Wrapper around the Google Maps Nearby Place Search API endpoint.
/maps/api/place/nearbysearch/json
?key={{api_key}}&radius={{ radius }}&type={{ type }}&pagetoken={{ token }}&keyword={{query}}&rankby={{order}}&location={{location}}
Body
Headers