Skip to content

A simple library to retrieve publically-available geospacial and weather data.

License

Notifications You must be signed in to change notification settings

GuMiner/GeoWeather

Repository files navigation

GeoWeather

A simple library to retrieve publically-available geospacial and weather data in the USA. Uses the BotCommon library to simplify sending weather responses to Bot Framework bots.

APIs

Geospacial

using GeoWeather.Location;

LocationQuerier querier = new LocationQuerier("YourBingMapsAPIKey");
GeoCoordinate location = await querier.GetLocationAsync("Miami, FL");

Weather Stations

using GeoWeather.Stations;

// Using the coordinate from the Geospacial example...
Station closestWeatherStation = StationLocator.FindClosestStation(location);

// Each station contains a callsign, name, and location.

Weather Data

using BotCommon;
using GeoWeather;
using GeoWeather.Layers;
using System;

WeatherSettings settings = new WeatherSettings(); // Defaults to a NOAA station and two layers.
IStore dataStore = ... // Created from the https://github.com/GuMiner/BotCommon library

// Get a weather image (as a SAS URI that will expire in approximately one year).
AttachmentResponse weatherImageAsABotResponseMessage = 
    await LayerRetriever.GetRadarImageAsync(settings, dataStore, "weather-blob-container", TimeSpan.FromDays(365));

About

A simple library to retrieve publically-available geospacial and weather data.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages