Locations

Get location by ID

Returns a geographic location by its ID. Locations are cities or states (in the case of the USA) where providers have data centers.

get/v1/locations/{locationId}

Request

  • Base URL
    https://api.emma.ms/external
  • Auth
    HTTP bearer

Path parameters

locationIdinteger required

ID of the geographic location

Query parameters

projectIdinteger

Unused, created for future API extention. Will be ignored if used.

Response

Successful operation

idinteger

ID of the geographical location

namestring

Name of the geographical location (city or state)

countrystring

Name of the country where the geographical location is situated

continentstring

Name of the geographical continent

regionstring

Name of the geographical region

latitudenumber double

Approximate latitude of the geographical location

longitudenumber double

Approximate longitude of the geographical location

Example response

{
  "id": 18,
  "name": "London",
  "country": "United Kingdom",
  "continent": "Asia",
  "region": "EMEA",
  "latitude": 51.50735,
  "longitude": -0.1277583
}

Changes

No recorded changes to this operation across all 1 revision of this API.