Get geolocation predictions (public)

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

Query parameters

  • input string Required

    The input to search for

  • types string

    The types of predictions to return

  • The components to filter by

Responses

  • 200 application/json

    get the predictions for the input

    Hide response attributes Show response attributes object
  • 401 application/json

    Unauthorized.

    Hide response attribute Show response attribute object
  • Forbidden - You don't have permission to access this route

  • 422 application/json

    Unprocessable Content

    Hide response attributes Show response attributes object
    • message string

      Error message.

    • errors object
      Hide errors attributes Show errors attributes object
      • field array[string]

        Error message details.

      • * array[string] Additional properties

        Error message details.

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"
    ]
  }
}