@decorators.json_view
@account_decorators.login_required
def user_geoip(request):
    lat, lng = gis.get_remote_user_location(ip=ipware_get_ip(request))
    return {'latitude': lat, 'longitude': lng}
AJAX method
dataset/ETHPy150Open satnet-project/server/services/configuration/ajax/views.py/user_geoip