Locations

Retrieve normalized location details

GET
/v1/locations/retrieve/{mapboxId}

Retrieve normalized location details (city, state, county, zip, coordinates) for a suggestion ID from suggestLocations. A location dictionary id resolves from Model Match's own data and echoes back its id; any other id resolves through Mapbox.

Authorization

x-api-key<token>

In: header

Path Parameters

mapboxId*string

Mapbox suggestion ID

Length1 <= length

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

curl -X GET "https://example.com/v1/locations/retrieve/string"
{
  "location": {
    "city": "string",
    "county": "string",
    "displayName": "string",
    "id": "string",
    "lat": 0,
    "lon": 0,
    "placeType": "string",
    "state": "string",
    "zip": "string"
  }
}
{
  "error": "string"
}
{
  "error": "string"
}
{
  "error": "string"
}
{
  "error": "string"
}
{
  "error": "string",
  "limit": 0,
  "size": 0
}