SUTRA-ONLINE
Determine search location.
Request payload is a Location
object. Returns a SearchLocation
object.
POST
/
v2
/
location
Authorizations
Authorization
string
headerrequiredBearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Body
application/json
city
string
Name of a city.
region
string
Name of a region, for example 'California'.
region_type
string
Type of a region, for example 'state' or 'province'.
country_name
string
Name of a country.
country_code
string
A two character country code, for example 'US' or 'IN'.
language_code
string
A language code, for example 'en', typically selected by the user.
locale
string
A locale, for exampl 'en-US'.
longitude
number
latitude
number
Response
200 - application/json
uule
string
requiredRepresents an encoded canonical location string.
country_code
string
requiredThe country code of the search location.
language_code
string
requiredThe language code of the search location.
city
string
The city of the search location (used in output only).
region
string
The region of the search location (used in output only).
country_name
string
The country name of the search location (used in output only).