@PostOnly
def fetch_org_by_centroid(request):
    try:
        lat = float(request.POST.get('lat'))
        lon = float(request.POST.get('lon'))
        limit = float(request.POST.get('limit', 20))
    except __HOLE__:
        json_error(INVALID_CENTROID_ERROR)

    orgs = Org.objects.filter(location__latitude__range = (lat - limit, lat + limit)).filter(location__longitude__range = (lon - limit, lon + limit))[0:limit]
    return json_response(json_encode(orgs))
dataset/ETHPy150Open jumoconnect/openjumo/jumodjango/org/ajax/views.py/fetch_org_by_centroid