-
Notifications
You must be signed in to change notification settings - Fork 1
/
mod.ts
31 lines (30 loc) · 880 Bytes
/
mod.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
/**
* Access Yr's weather API and Nominatim's names API for getting weather details
* about a specific location.
*
* ## Example for current weather
*
* ```ts
* import { getCurrentWeather } from 'https://deno.land/x/dyr/mod.ts';
*
* const currentWeather = getCurrentWeather('Bergen');
* // do what you need to do with the weather data.
* ```
*
* ## Example for forecasted weather
*
* ```ts
* import { getForecastedWeather } from 'https://deno.land/x/dyr/mod.ts';
*
* const location = 'Bergen';
* const hoursAhead = 5;
* const verboseLevel = 3;
* const currentWeather = getForecastedWeather(location, hoursAhead, verboseLevel);
* // do what you need to do with the weather data.
* ```
*
* @module
*/
export { Nominatim } from './src/nominatim.ts';
export { Yr } from './src/yr.ts';
export { getCurrentWeather, getForecastedWeather } from './src/util.ts';