Example #1
0
def get_ll():
	ll_list = ast.literal_eval(request.args.keys()[0])
	print "**************** Heat ll list: ", ll_list
	ll_pts = CrimePoints.get_heat_pts(ll_list[0], ll_list[1], ll_list[2], ll_list[3])
	# crime_ll_list = []
	# fh = open('crime_ll')
	# for line in fh:
	# 	lat, lon = line.split()
	# 	crime_ll_list.append((float(lat),float(lon)))
	return json.dumps(ll_pts)
def get_ll():
    ll_list = ast.literal_eval(request.args.keys()[0])
    print "**************** Heat ll list: ", ll_list
    ll_pts = CrimePoints.get_heat_pts(ll_list[0], ll_list[1], ll_list[2],
                                      ll_list[3])
    # crime_ll_list = []
    # fh = open('crime_ll')
    # for line in fh:
    # 	lat, lon = line.split()
    # 	crime_ll_list.append((float(lat),float(lon)))
    return json.dumps(ll_pts)