From bf7146f27e356c9034fd8e5cb44fff0c93ef9e6c Mon Sep 17 00:00:00 2001 From: Per Qvarforth Date: Sun, 30 Jan 2022 23:43:21 +0100 Subject: [PATCH] changed geoip service --- htdocs/public/index.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/htdocs/public/index.php b/htdocs/public/index.php index 5abb463..202f748 100755 --- a/htdocs/public/index.php +++ b/htdocs/public/index.php @@ -90,8 +90,8 @@ options['defaultLatitude'] = '59.30928'; options['defaultLongitude'] = '18.08830'; - // Tip: request position from some ip->location service (here using freegeoip as an example) - $.getJSON('https://freegeoip.app/json/', function(data) { + // Tip: request position from some ip->location service (https://freegeoip.app/json and https://ipapi.co/json is two examples) + $.getJSON('https://ipapi.co/json', function(data) { if (data.latitude && data.longitude) { options['defaultLatitude'] = data.latitude; options['defaultLongitude'] = data.longitude;