Google Locations Finder
Usar em massa com o DataflowExecute este endpoint sobre um arquivo ou uma lista, uma vez ou com agendamento.
Search Google-supported locations by name to retrieve location IDs and GPS coordinates for geo-targeted search API calls.
ApiKeyAuthx-api-key<token>Your API key. Include it in the x-api-key header for every request.
query*stringRestricts your search to locations that contain the supplied string.
Example:
ParisNote: Searching 'Austin' will find 'Austin, TX', 'The University of Texas at Austin', 'Rochester, MN-Mason City, IA-Austin, MN, United States', etc.
fields?stringComma-separated list of response fields to return, with dot notation for nested fields (e.g. name,location.city).
is_async?booleanRun the request as a background job: the API answers 202 with a job_id to poll on GET /v1/jobs/{id}.
falsesoft_fail?booleanReturn HTTP 200 even when the request fails; the error is in the error field of the body.
falseSuccessful response
application/json- response
[index: integer]?curl -X GET 'https://api.piloterr.com/v2/finder/google-locations?query=string'[
{
"id": "585069a2ee19ad271e9b5052",
"gps": [
-98.936927,
49.951529
],
"name": "Austin",
"reach": 0,
"google_id": 1001982,
"target_type": "City",
"country_code": "CA",
"canonical_name": "Austin,Manitoba,Canada",
"google_parent_id": 20115
}
]