Queries Library
Queries LibraryFetch US weather forecast data for a location

Fetch US weather forecast data for a location

This query connects to US National Weather Service's API and retrieves the weather forecast data for the location with given coordinates (via variables $lat and $long).

query FetchUSWeatherDataForLocation(
  $lat: Float!
  $long: Float!
) {
  url: _sprintf(
    string: "https://api.weather.gov/points/%s,%s",
    values: [$lat, $long]
  )
  _sendJSONObjectItemHTTPRequest(input: {
    url: $__url
  })
}