GET /geolocation/autocomplete

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

  • X-Popsell-Domain string Required

    The domain of the user

Query parameters

  • input string Required

    The input to search for

  • types string

    The types of predictions to return

  • components string

    The components to filter by

Responses

  • 200 application/json

    get the predictions for the input

    Hide response attributes Show response attributes object
    • predictions array[object]
    • status string
  • 403

    Forbidden - You don't have permission to access this route

GET /geolocation/autocomplete
curl \
 --request GET 'https://domain.tld/api/v2/geolocation/autocomplete?input=Paris' \
 --header "X-Popsell-Domain: example.com"
Response examples (200)
{
  "predictions": [
    {}
  ],
  "status": "OK"
}