GET /maps/api/place/textsearch/json
The Google Places API Text Search Service is a web service that returns information about a set of places based on a string — for example "pizza in New York" or "shoe stores near Ottawa" or "123 Main Street". The service responds with a list of places matching the text string and any location bias that has been set.
The service is especially useful for making ambiguous address queries in an automated system, and non-address components of the string may match businesses as well as addresses. Examples of ambiguous address queries are incomplete addresses, poorly formatted addresses, or a request that includes non-address components such as business names.
The search response will include a list of places. You can send a Place Details request for more information about any of the places in the response.
Servers
- https://www.googleapis.com
- https://maps.googleapis.com
- https://roads.googleapis.com
Query parameters
Name | Type | Required | Description |
---|---|---|---|
region |
String | No |
The region code, specified as a ccTLD ("top-level domain") two-character value. Most ccTLD codes are identical to ISO 3166-1 codes, with some notable exceptions. For example, the United Kingdom's ccTLD is "uk" (.co.uk) while its ISO 3166-1 code is "gb" (technically for the entity of "The United Kingdom of Great Britain and Northern Ireland"). |
query |
String | No |
(Required) The text string on which to search, for example: "restaurant" or "123 Main Street". This must a place name, address, or category of establishments. Any other types of input can generate errors and are not guaranteed to return valid results. The Google Places service will return candidate matches based on this string and order the results based on their perceived relevance. |
opennow |
String | No |
Returns only those places that are open for business at the time the query is sent. Places that do not specify opening hours in the Google Places database will not be returned if you include this parameter in your query. |
location |
String | No |
The point around which to retrieve place information. This must be specified as The
location parameter may be overriden if the query contains an explicit location such as Market in Barcelona . Using quotes around the query may also influence the weight given to the location and radius . |
radius |
String | No |
Defines the distance (in meters) within which to return place results. You may bias results to a specified circle by passing a The radius will automatically be clamped to a maximum value depending on the type of search and other parameters.
|
type |
String | No |
Restricts the results to places matching the specified type. Only one type may be specified. If more than one type is provided, all types following the first entry are ignored.
See the list of supported types. Note: Adding both `keyword` and `type` with the same value (`keyword=cafe&type=cafe` or `keyword=parking&type=parking`) can yield `ZERO_RESULTS`.
|
maxprice |
String | No |
Restricts results to only those places within the specified range. Valid values range between 0 (most affordable) to 4 (most expensive), inclusive. The exact amount indicated by a specific value will vary from region to region. |
pagetoken |
String | No |
Returns up to 20 results from a previously run search. Setting a |
minprice |
String | No |
Restricts results to only those places within the specified range. Valid values range between 0 (most affordable) to 4 (most expensive), inclusive. The exact amount indicated by a specific value will vary from region to region. |
language |
String | No |
The language in which to return results.
|
How to start integrating
- Add HTTP Task to your workflow definition.
- Search for the API you want to integrate with and click on the name.
- This loads the API reference documentation and prepares the Http request settings.
- Click Test request to test run your request to the API and see the API's response.