mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
13 lines
326 B
JavaScript
13 lines
326 B
JavaScript
import {Http} from 'ionic/net/http';
|
|
|
|
let WUNDERGROUND_API_KEY = '1cc2d3de40fa5af0';
|
|
|
|
let FORECASTIO_KEY = '4cd3c5673825a361eb5ce108103ee84a';
|
|
|
|
export class Weather {
|
|
static getAtLocation(lat, lng) {
|
|
let url = 'https://api.forecast.io/forecast/' + FORECASTIO_KEY + '/';
|
|
return Http.get(url + lat + ',' + lng);
|
|
}
|
|
}
|