GithubHelp home page GithubHelp logo

No Celsius about darkskyapi HOT 2 CLOSED

jcheng31 avatar jcheng31 commented on July 2, 2024
No Celsius

from darkskyapi.

Comments (2)

jcheng31 avatar jcheng31 commented on July 2, 2024

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.

andreweberle avatar andreweberle commented on July 2, 2024

awesome! I overlooked this part, very nice indeed!

from darkskyapi.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.