[util/location] reverse location providers

seems that ipapi gives better results wrt. location
This commit is contained in:
tobi-wan-kenobi 2020-06-27 15:05:57 +02:00
parent 954d7545e3
commit 350648b0cd

View file

@ -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",
},
}
]