Suggests up to 7 locations matching a query prefix, for typeahead use.
Parameters
Output
Encoding
application/jsonlocations
array
Required
No description available.
Try It
Requests are sent directly from your browser. Some servers may block requests due to CORS.
View raw schema
{
"description": "Suggests up to 7 locations matching a query prefix, for typeahead use.",
"output": {
"encoding": "application/json",
"schema": {
"properties": {
"locations": {
"items": {
"properties": {
"country": {
"maxLength": 256,
"type": "string"
},
"latitude": {
"type": "integer"
},
"longitude": {
"type": "integer"
},
"name": {
"maxLength": 256,
"type": "string"
},
"region": {
"maxLength": 256,
"type": "string"
}
},
"required": [
"name",
"region",
"country",
"latitude",
"longitude"
],
"type": "object"
},
"type": "array"
}
},
"required": [
"locations"
],
"type": "object"
}
},
"parameters": {
"properties": {
"query": {
"description": "The location prefix to search for.",
"maxLength": 512,
"type": "string"
}
},
"required": [
"query"
],
"type": "params"
},
"type": "query"
}