Get geolocation predictions (public)
to have more information about the types and components, please refer to the Google Maps API documentation: https://developers.google.com/maps/documentation/places/web-service/autocomplete
Headers
-
The domain of the user
Query parameters
-
The input to search for
-
types string
The types of predictions to return
-
components string
The components to filter by
GET /geolocation/autocomplete
curl \
-X GET https://domain.tld/api/v2/geolocation/autocomplete?input=Paris \
-H "X-Popsell-Domain: example.com"
Response examples (200)
{
"predictions": [
{}
],
"status": "OK"
}
Response examples (401)
{
"message": "Unauthorized."
}
Response examples (422)
{
"message": "field is required! (and 3 more error)",
"errors": {
"field": [
"Error message details here"
],
"additionalProperty1": [
"Error message details here"
],
"additionalProperty2": [
"Error message details here"
]
}
}