location-timezone

Reverse geocode coordinates to location name

Convert latitude/longitude to a human-readable location with timezone.

get/location/reverse

Request

  • Base URL: https://api.openephemeris.com
  • URL: https://api.openephemeris.com/location/reverse
  • Auth: HTTP bearer

Query parameters

latnumber required

Latitude in decimal degrees

Example:40.7128
lngnumber required

Longitude in decimal degrees

Example:-74.006

Headers

authorizationstring nullable
X-API-Keystring nullable
X-OpenEphemeris-API-Keystring nullable
apikeystring nullable

Response

Successful Response

citystring

City or locality name, if available

countrystring

Full country name

country_codestring

ISO 3166-1 alpha-2 country code

display_namestring required

Formatted name suitable for UI display

latitudenumber required

Latitude in decimal degrees

longitudenumber required

Longitude in decimal degrees

regionstring

Region, state, or province name

timezonestring required

IANA timezone identifier

Example response

{
  "city": "New York",
  "country": "United States",
  "country_code": "US",
  "display_name": "New York, New York, United States",
  "latitude": 40.7128,
  "longitude": -74.006,
  "region": "New York",
  "timezone": "America/New_York"
}

Changes

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