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, get information about when the sun and the moon rise and set. The angle to the sun at solar noon is also given. The times are all in UTC.

Coordinates are given with east and north as positive values. 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).

The from-to-query is limited to max 30 days per request.


SCHEMA

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


USAGE

Parameters

Sample request URLs:


Changelog

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.