From 16b5cb07fcd9306fb585abbcf1b5e628c1703f55 Mon Sep 17 00:00:00 2001 From: clach04 Date: Sun, 19 Nov 2023 08:09:10 -0800 Subject: [PATCH] issue #69 - used cached GPS location --- src/pkjs/weather/provider.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pkjs/weather/provider.js b/src/pkjs/weather/provider.js index fb11a74..dafda0e 100644 --- a/src/pkjs/weather/provider.js +++ b/src/pkjs/weather/provider.js @@ -115,7 +115,7 @@ WeatherProvider.prototype.withGpsCoordinates = function(callback) { // callback(lattitude, longtitude) var options = { enableHighAccuracy: true, - maximumAge: 10000, + maximumAge: 10000, // used cached GPS location if unable to get live location timeout: 10000 }; function success(pos) { @@ -232,4 +232,4 @@ WeatherProvider.prototype.getPayload = function() { return payload; } -module.exports = WeatherProvider; \ No newline at end of file +module.exports = WeatherProvider;