Weather.gov · Schema

RelativeLocation

RelativeLocation schema from weather.gov API

WeatherGovernmentUnited StatesForecastingAlertsOpen Data

Properties

Name Type Description
city string
state string
distance object
bearing object
View JSON Schema on GitHub

JSON Schema

weather-gov-relative-location-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/weather-gov/refs/heads/main/json-schema/weather-gov-relative-location-schema.json",
  "title": "RelativeLocation",
  "description": "RelativeLocation schema from weather.gov API",
  "type": "object",
  "properties": {
    "city": {
      "type": "string"
    },
    "state": {
      "type": "string"
    },
    "distance": {
      "$ref": "#/components/schemas/QuantitativeValue"
    },
    "bearing": {
      "$ref": "#/components/schemas/QuantitativeValue"
    }
  }
}