IPGeolocation.io · Schema

LocodeDetails

City or logistics location information returned when the timezone lookup is performed using a UN/LOCODE. UN/LOCODE is a five-character identifier consisting of a two-letter country code followed by a three-character location identifier.

GeocodingIP GeolocationIP IntelligenceIP SecurityASN LookupAbuse ContactTimezoneAstronomyUser AgentThreat IntelligencePublic APIs

Properties

Name Type Description
lo_code string UN/LOCODE representing the city or logistics location.
city string Name of the city associated with the UN/LOCODE.
state_code string State or region code of the location.
country_code string ISO 3166-1 alpha-2 country code.
country_name string Name of the country where the location exists.
location_type string Type of facilities available at the location such as port, rail terminal, road terminal, airport, or postal exchange.
latitude string Latitude coordinate of the location.
longitude string Longitude coordinate of the location.
View JSON Schema on GitHub

JSON Schema

timezone-locode-details-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/ipgeolocation/refs/heads/main/json-schema/timezone-locode-details-schema.json",
  "title": "LocodeDetails",
  "description": "City or logistics location information returned when the timezone\nlookup is performed using a UN/LOCODE.\n\nUN/LOCODE is a five-character identifier consisting of a two-letter\ncountry code followed by a three-character location identifier.\n",
  "type": "object",
  "properties": {
    "lo_code": {
      "type": "string",
      "description": "UN/LOCODE representing the city or logistics location.",
      "example": "DEBER"
    },
    "city": {
      "type": "string",
      "description": "Name of the city associated with the UN/LOCODE.",
      "example": "Berlin"
    },
    "state_code": {
      "type": "string",
      "description": "State or region code of the location.",
      "example": "BE"
    },
    "country_code": {
      "type": "string",
      "description": "ISO 3166-1 alpha-2 country code.",
      "example": "DE"
    },
    "country_name": {
      "type": "string",
      "description": "Name of the country where the location exists.",
      "example": "Germany"
    },
    "location_type": {
      "type": "string",
      "description": "Type of facilities available at the location such as port,\nrail terminal, road terminal, airport, or postal exchange.\n",
      "example": "Port, Rail Terminal, Road Terminal, Airport, Postal Exchange"
    },
    "latitude": {
      "type": "string",
      "description": "Latitude coordinate of the location.",
      "example": "52.51667"
    },
    "longitude": {
      "type": "string",
      "description": "Longitude coordinate of the location.",
      "example": "13.38333"
    }
  }
}