B<Sunrise> - When does the sun rise and set for a given place?


NAME

Sunrise - When does the sun rise and set for a given place?


DESCRIPTION

Given a position in longitude and latitude and date, send a simple request and find out when the sun and the moon rise and set. The elevation angle of the sun at solar noon is also given. You can either specify a given date using the date parameter or you can ask for a range, using the parameters from and to (which both are inclusive). Note that the algorithm estimates the timezone based on longitude, and events around midnight can therefore be misplaced with respect to the local date.

The times are all in UTC. Coordinates are given with east and north as positive values.


SCHEMA

Schema is available as http://api.met.no/weatherapi/sunrise/1.0/schema


USAGE

A simple request to retrieve processed Sun/Moon rise/set information has the following parameters:

Sample simple request URLs ("sunrise data for a day", "sunrise data for a period", "day with several moonrises")


Changelog

version 1.1: 2015-11-01

- version 1.0 expires 2016-06-06
- bugfix: publish 0, 1, or 2 moon rise / moon sets per date.

version 1.0: 2014-04-01

- Added direct request to astronomical event library. =item - Uses JPL ephemerides DE405. =item - Output now agrees well with "Almanakk for Norge".

version 1.0: 2012-01-11

- Maximum 30 days are accepted in from-to search

version 1.0: 2009-06-02

- Better use of algorithm, should give more accurate data
- New parameters from and to, returning all events in the range
- Either date or from and to is now compulsory
- Version 0.9 will expire 2009-06-24

version 0.9: 2008-09-10

- Algorithm for the computation is updated. Should be more accurate.
- Version 0.8 will expire 2008-10-01

version 0.8: 2008-06-24

- New product, not in accordance with the Norwegian almanac.
 B<Sunrise> - When does the sun rise and set for a given place?