Switch from ipinfo.io to freegeoip because of API call limits
This commit is contained in:
parent
9ddc993cd5
commit
94961f09bb
1 changed files with 1 additions and 1 deletions
|
@ -34,7 +34,7 @@ def get_geoip(request):
|
||||||
else:
|
else:
|
||||||
raise Exception("Client is localhost")
|
raise Exception("Client is localhost")
|
||||||
|
|
||||||
g = geocoder.ip(client_ip)
|
g = geocoder.freegeoip(client_ip)
|
||||||
return g
|
return g
|
||||||
|
|
||||||
def get_bounding_box(center, radius):
|
def get_bounding_box(center, radius):
|
||||||
|
|
Loading…
Reference in a new issue