Weather Services

Weather information

This service provides weather information for the world, when you specify either a single location, or a point to point route. Weather data is provided by two different, user-specified services:

Aviationweather.gov provides measured weather information from weather stations around the world. Realtime weather data from the Singaporean government is also available for locations close to Singapore.

API Paths
weather/site
weather/pointToPoint
HTTP Method
POST
Input Format

All weather service requests can be performed at a site or along a point to point route, as specified in the API paths above. For the Path element below, use the JSON from the point to point route or a site location.

Weather data is provided within the time span requested, at varying increments. Data for Singapore is available in half-hour increments, and data for AviationWeather.gov is available in 1 hour increments. Route weather results will be queried for the weather based on your location along the route at each increment.

{
    "Path": {},
    "AnalysisStart": "YYYY-MM-DDTHH:mm:ss",
    "AnalysisStop": "YYYY-MM-DDTHH:mm:ss",
    "Provider": "AviationDotGov"
}
Path
JSON object defining the location or route for which weather information be queried.
AnalysisStart
The start date and time of the weather report. Required for site paths, ignored when the Path is a route.
AnalysisStop
The stop date and time of the weather report. Required for site paths, ignored when the Path is a route.
Provider
The weather provider you want to use for your weather report. Required. Valid values are "AviationDotGov", "Singapore".

Notes on the weather result outputs:

  1. Not all weather result values are produced by all providers. To keep our API consistent, we will place a "NaN" in any specific weather result value if that value cannot be obtained for any reason. Be sure to check for a NaN before using a particular value from the weather result.
  2. Cloud Ceiling values are calculated using data from the AviationWeather.gov provider. If you use other providers, a secondary query to aviationweather.gov will be made by this service to obtain data from which a cloud ceiling value can be calculated. The "Notes" output field in the weather result will describe which site provided this data. Additionally, if the Cloud Ceiling value is NaN, there is no ceiling specified.

Input Sample: Single Site

This sample shows the weather reports at a single site.

{
  "Path": {
    "Location": {
      "Latitude": 39.0,
      "Longitude": -104.77,
      "Altitude": 2000.0
    }
  },
  "AnalysisStart": "2021-10-4T15:00:00",
  "AnalysisStop": "2021-10-4T17:00:00",
  "Provider": "AviationDotGov"
}
Output Sample: Single Site
[
  {
    "ResultTime": "2021-10-04T15:58:00+00:00",
    "AtmosphericPressure": 1021.1,
    "CloudCeiling": "NaN",
    "CloudCover": 0.0,
    "DewPoint": "NaN",
    "RelativeHumidity": "NaN",
    "Icon": "",
    "PrecipitationRate": "NaN",
    "PrecipitationType": "",
    "PrecipitationProbability": "NaN",
    "Temperature": 68.0,
    "TextSummary": "",
    "Visibility": 10.0,
    "WindGust": "NaN",
    "WindSpeed": 0.0,
    "WindDirection": 0.0,
    "Notes": "Station KAFF, 3.4 mi away."
  },
  {
    "ResultTime": "2021-10-04T16:58:00+00:00",
    "AtmosphericPressure": 1021.6,
    "CloudCeiling": "NaN",
    "CloudCover": 0.0,
    "DewPoint": "NaN",
    "RelativeHumidity": "NaN",
    "Icon": "",
    "PrecipitationRate": "NaN",
    "PrecipitationType": "",
    "PrecipitationProbability": "NaN",
    "Temperature": 71.6,
    "TextSummary": "",
    "Visibility": 10.0,
    "WindGust": "NaN",
    "WindSpeed": 3.45234,
    "WindDirection": 60.0,
    "Notes": "Station KAFF, 3.4 mi away."
  }
]
Input Sample: Point to Point Route

This sample shows the weather reports for a point to point route.

{
  "Path": {
    "Waypoints": [
      {
        "Position": {
          "Latitude": 39.07096,
          "Longitude": -104.78509,
          "Altitude": 2000
        },
        "Time": "2021-10-4T14:30:00"
      },
      {
        "Position": {
          "Latitude": 39.743635,
          "Longitude": -104.607925,
          "Altitude": 1800
        },
        "Time": "2021-10-4T16:30:00"
      }
    ],
    "IncludeWaypointsInRoute": true,
    "OutputSettings": {
      "Step": 900,
      "TimeFormat": "Epoch",
      "CoordinateFormat": {
        "Coord": "LLA"
      }
    }
  },
  "Provider": "AviationDotGov"
}
Output Sample: Point to Point Route
[
  {
    "Location": {
      "Latitude": 39.070960000000014,
      "Longitude": -104.78509,
      "Altitude": 1999.9999999992813
    },
    "ResultTime": "2021-10-04T14:15:00+00:00",
    "AtmosphericPressure": "NaN",
    "CloudCeiling": "NaN",
    "CloudCover": 0.0,
    "DewPoint": "NaN",
    "RelativeHumidity": "NaN",
    "Icon": "",
    "PrecipitationRate": "NaN",
    "PrecipitationType": "",
    "PrecipitationProbability": "NaN",
    "Temperature": 51.8,
    "TextSummary": "",
    "Visibility": 10.0,
    "WindGust": "NaN",
    "WindSpeed": 4.60312,
    "WindDirection": 200.0,
    "Notes": "Station KMNH, 12.6 mi away."
  },
  {
    "Location": {
      "Latitude": 39.239155786014244,
      "Longitude": -104.74111819753959,
      "Altitude": 1864.3569008019758
    },
    "ResultTime": "2021-10-04T14:55:00+00:00",
    "AtmosphericPressure": "NaN",
    "CloudCeiling": "NaN",
    "CloudCover": 0.0,
    "DewPoint": "NaN",
    "RelativeHumidity": "NaN",
    "Icon": "",
    "PrecipitationRate": "NaN",
    "PrecipitationType": "",
    "PrecipitationProbability": "NaN",
    "Temperature": 60.8,
    "TextSummary": "",
    "Visibility": 10.0,
    "WindGust": "NaN",
    "WindSpeed": 0.0,
    "WindDirection": 0.0,
    "Notes": "Station KMNH, 5.1 mi away."
  },
  {
    "Location": {
      "Latitude": 39.407335684450139,
      "Longitude": -104.69693442131424,
      "Altitude": 1785.8091506777123
    },
    "ResultTime": "2021-10-04T15:15:00+00:00",
    "AtmosphericPressure": "NaN",
    "CloudCeiling": "NaN",
    "CloudCover": 0.0,
    "DewPoint": "NaN",
    "RelativeHumidity": "NaN",
    "Icon": "",
    "PrecipitationRate": "NaN",
    "PrecipitationType": "",
    "PrecipitationProbability": "NaN",
    "Temperature": 62.6,
    "TextSummary": "",
    "Visibility": 10.0,
    "WindGust": "NaN",
    "WindSpeed": 3.45234,
    "WindDirection": 280.0,
    "Notes": "Station KMNH, 13.2 mi away."
  },
  {
    "Location": {
      "Latitude": 39.57549649079818,
      "Longitude": -104.65253718776773,
      "Altitude": 1764.357209844
    },
    "ResultTime": "2021-10-04T15:53:00+00:00",
    "AtmosphericPressure": 1022.1,
    "CloudCeiling": "NaN",
    "CloudCover": 0.0,
    "DewPoint": "NaN",
    "RelativeHumidity": "NaN",
    "Icon": "",
    "PrecipitationRate": "NaN",
    "PrecipitationType": "",
    "PrecipitationProbability": "NaN",
    "Temperature": 66.02,
    "TextSummary": "",
    "Visibility": 10.0,
    "WindGust": "NaN",
    "WindSpeed": 5.75389957,
    "WindDirection": 260.0,
    "Notes": "Station KAPA, 10.5 mi away."
  },
  {
    "Location": {
      "Latitude": 39.743635,
      "Longitude": -104.607925,
      "Altitude": 1800.0000000010818
    },
    "ResultTime": "2021-10-04T16:15:00+00:00",
    "AtmosphericPressure": "NaN",
    "CloudCeiling": "NaN",
    "CloudCover": 0.0,
    "DewPoint": "NaN",
    "RelativeHumidity": "NaN",
    "Icon": "",
    "PrecipitationRate": "NaN",
    "PrecipitationType": "",
    "PrecipitationProbability": "NaN",
    "Temperature": 68.36,
    "TextSummary": "",
    "Visibility": 10.0,
    "WindGust": "NaN",
    "WindSpeed": 0.0,
    "WindDirection": 0.0,
    "Notes": "Station KEIK, 30.3 mi away."
  }
]