Comments (2)
Yep, definitely! All of the units of measurement supported by the API are supported here as well. Try GetWeatherDataAsync(<latitude>, <longitude>, Unit.CA)
The full breakdown of the various units of measurement is in RequestParameters.cs
(reproduced here for convenience):
Unit.US:
/// US units of measurement.
/// Summaries containing temperature or snow accumulation units have
/// their values in degrees Fahrenheit or inches (respectively).
/// Nearest storm distance: Miles
/// Precipitation intensity: Inches per hour
/// Precipitation accumulation: Inches
/// Temperature: Fahrenheit
/// Dew Point: Fahrenheit
/// Wind Speed: Miles per hour
/// Pressure: Millibars
/// Visibility: Miles
Unit.SI:
/// SI units of measurement.
/// Summaries containing temperature or snow accumulation units have
/// their values in degrees Celsius or centimeters (respectively).
/// Nearest storm distance: Kilometers
/// Precipitation intensity: Millimeters per hour
/// Precipitation accumulation: Centimeters
/// Temperature: Celsius
/// Dew Point: Celsius
/// Wind Speed: Meters per second
/// Pressure: Hectopascals (equivalent to millibars)
/// Visibility: Kilometers
Unit.CA:
/// Canadian units of measurement. Same as SI, but kilometres per hour used for wind speed.
/// Summaries containing temperature or snow accumulation units have
/// their values in degrees Celsius or centimeters (respectively).
/// Nearest storm distance: Kilometers
/// Precipitation intensity: Millimeters per hour
/// Precipitation accumulation: Centimeters
/// Temperature: Celsius
/// Dew Point: Celsius
/// Wind Speed: Kilometers per hour
/// Pressure: Hectopascals (equivalent to millibars)
/// Visibility: Kilometers
Unit.UK:
/// UK units of measurement. Same as SI, but miles per hour used for wind speed.
/// Summaries containing temperature or snow accumulation units have
/// their values in degrees Celsius or centimeters (respectively).
/// Nearest storm distance: Kilometers
/// Precipitation intensity: Millimeters per hour
/// Precipitation accumulation: Centimeters
/// Temperature: Celsius
/// Dew Point: Celsius
/// Wind Speed: Miles per hour
/// Pressure: Hectopascals (equivalent to millibars)
/// Visibility: Kilometers
Unit.Auto:
/// Automatically choose units of measurement based on location.
from darkskyapi.
awesome! I overlooked this part, very nice indeed!
from darkskyapi.
Related Issues (20)
- Add Windows 10 support HOT 12
- Debug configuration test FAILED HOT 3
- Compiling with .NET Native toolchain causes InvalidDataContractException during serialization HOT 19
- Unable to install package in Xamarin Forms App HOT 1
- UK2 Unit value
- Add new languages
- Thread Deadlock issue in ASP.NET HOT 1
- Missing UV index HOT 3
- Release a new package w/ UV index data HOT 2
- Missing severity on Alerts class HOT 9
- issue with await HOT 1
- How do we know if the limit was exceeded (license expired / account locked) on the response HOT 1
- Problem Accessing GetWeatherDataAsync HOT 3
- Apple has purchased Dark Sky and is shutting down the API.
- string format in czech locale HOT 8
- System.Runtime.Serialization.SerializationException HOT 4
- Working with the result. HOT 5
- Add Actual Documentation HOT 1
- Add Swedish, Turkish, Chinese, and Arabic support.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from darkskyapi.