Xweather · Schema

Location

Location schema from Xweather Weather API

Air QualityCompanyDataForecastsLightningMaritimeObservationsSevere WeatherWeather

Properties

Name Type Description
id string Location identifier.
name string Location name.
state string State or province code.
stateFull string Full state or province name.
country string Country code (ISO 3166-1 alpha-2).
countryFull string Full country name.
lat number Latitude.
lon number Longitude.
elevM number Elevation in meters.
elevFT number Elevation in feet.
profile object Additional location profile data.
View JSON Schema on GitHub

JSON Schema

xweather-location-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/xweather/refs/heads/main/json-schema/xweather-location-schema.json",
  "title": "Location",
  "description": "Location schema from Xweather Weather API",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "description": "Location identifier."
    },
    "name": {
      "type": "string",
      "description": "Location name."
    },
    "state": {
      "type": "string",
      "description": "State or province code."
    },
    "stateFull": {
      "type": "string",
      "description": "Full state or province name."
    },
    "country": {
      "type": "string",
      "description": "Country code (ISO 3166-1 alpha-2)."
    },
    "countryFull": {
      "type": "string",
      "description": "Full country name."
    },
    "lat": {
      "type": "number",
      "format": "float",
      "description": "Latitude."
    },
    "lon": {
      "type": "number",
      "format": "float",
      "description": "Longitude."
    },
    "elevM": {
      "type": "number",
      "description": "Elevation in meters."
    },
    "elevFT": {
      "type": "number",
      "description": "Elevation in feet."
    },
    "profile": {
      "type": "object",
      "description": "Additional location profile data."
    }
  }
}