Example #1
0
def get_all_stops(request):
	stops = queries.get_all_stops()
	return HttpResponse(formats.stops_to_json(stops), mimetype='application/json')
Example #2
0
def get_stops_within_bounds_with_times(request, n, s, e, w):
    stops = queries.get_stops_within_bounds_with_times(n, s, e, w)
    return HttpResponse(formats.stops_to_json(stops), mimetype='application/json')