[util/location] reverse location providers
seems that ipapi gives better results wrt. location
This commit is contained in:
parent
954d7545e3
commit
350648b0cd
1 changed files with 9 additions and 9 deletions
|
@ -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",
|
||||
},
|
||||
}
|
||||
]
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue