Skip to main content
POST
/
v1
/
geolocation
Persist a geolocation
curl --request POST \
  --url https://app.variable.global/api/v1/geolocation \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "googleMapsId": "ChIJA4UGSG_xNIgRNBuiWqEV-Y0"
}
'
{
  "uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "googleMapsId": "ChIJA4UGSG_xNIgRNBuiWqEV-Y0",
  "name": "Syracuse, NY, USA",
  "countryCode": "US",
  "latitude": 43.0481,
  "longitude": -76.1474,
  "locationType": "APPROXIMATE"
}
Requires permission:

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
googleMapsId
string
required
Pattern: ^[A-Za-z0-9_-]{1,300}$
Example:

"ChIJA4UGSG_xNIgRNBuiWqEV-Y0"

Response

The persisted geolocation

uuid
string<uuid>

Present only on a persisted geolocation (the POST response); absent on search candidates.

googleMapsId
string
Example:

"ChIJA4UGSG_xNIgRNBuiWqEV-Y0"

name
string

The geocoder's formatted address.

Example:

"Syracuse, NY, USA"

countryCode
string
Example:

"US"

latitude
number
Example:

43.0481

longitude
number
Example:

-76.1474

locationType
string
Example:

"APPROXIMATE"