From 1cab239155506631008bc54f053e23c7ab57d516 Mon Sep 17 00:00:00 2001 From: Mark van der Wal Date: Tue, 4 Feb 2020 17:38:04 +0100 Subject: [PATCH] AW-811: Changed weatherservice --- projects/common/src/fm/services/weather.service.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/projects/common/src/fm/services/weather.service.ts b/projects/common/src/fm/services/weather.service.ts index 1ecbacf..109ac10 100644 --- a/projects/common/src/fm/services/weather.service.ts +++ b/projects/common/src/fm/services/weather.service.ts @@ -9,14 +9,14 @@ import {WeatherCurrentObservation} from '../models/weatherCurrentObservation'; }) export class WeatherService { private apiUrl = '/api/v1/weather/currentobservation'; - private apiKey = '5f17ef36283b49e9b099a1f4064fbf3d'; constructor(public httpClient: HttpClient, public appConfig: AppConfig) { } public GetCurrentObservation(centroid: number[]): Observable { - const endpoint = this.appConfig.getConfig('apiEndPoint'); - const observationUrl = `${endpoint}${this.apiUrl}/?c=${centroid[0]},${centroid[1]}&key=${this.apiKey}`; + const endpoint = this.appConfig.getConfig('weatherApiEndPoint'); + const apiKey = this.appConfig.getConfig('weatherApiKey'); + const observationUrl = `${endpoint}${this.apiUrl}/?c=${centroid[0]},${centroid[1]}&key=${apiKey}`; return this.httpClient.get(observationUrl); }