From 350648b0cd9e3c3b980c6e72946ddfc8d14cb11f Mon Sep 17 00:00:00 2001 From: tobi-wan-kenobi Date: Sat, 27 Jun 2020 15:05:57 +0200 Subject: [PATCH] [util/location] reverse location providers seems that ipapi gives better results wrt. location --- bumblebee_status/util/location.py | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/bumblebee_status/util/location.py b/bumblebee_status/util/location.py index f8cb441..12242ea 100644 --- a/bumblebee_status/util/location.py +++ b/bumblebee_status/util/location.py @@ -16,15 +16,6 @@ __document = None __data = {} __next = 0 __sources = [ - { - "url": "http://free.ipwhois.io/json/", - "mapping": { - "latitude": "latitude", - "longitude": "longitude", - "country": "country", - "ip": "public_ip", - }, - }, { "url": "http://ipapi.co/json", "mapping": { @@ -34,6 +25,15 @@ __sources = [ "ip": "public_ip", }, }, + { + "url": "http://free.ipwhois.io/json/", + "mapping": { + "latitude": "latitude", + "longitude": "longitude", + "country": "country", + "ip": "public_ip", + }, + } ]