예제 #1
0
파일: api.py 프로젝트: mayfer/transit
def get_all_stops(request):
	stops = queries.get_all_stops()
	return HttpResponse(formats.stops_to_json(stops), mimetype='application/json')
예제 #2
0
파일: api.py 프로젝트: mayfer/transit
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')