# Path: allbus/thebus/views/bus_views.py
# def all_buses(request):
# def bus_details(request, bus):
# 
# Path: allbus/thebus/views/stop_views.py
# STRIP_CONNECTORS = ['or', 'and', 'near', '+', '&']
# def stop_details(request, stop_id, route=None):
# def stop_nearby(request, latitude, longitude):
# def stop_search(request):
# def stop_bus_map(request, stop_id, route, trip_id, bus = None):
# 
# Path: allbus/thebus/views/trip_views.py
# def trip_details(request, trip_id):


from django.conf.urls import url
from .views import bus_views
from .views import stop_views
from .views import trip_views
#!/usr/bin/env python
# -*- coding: utf-8 -*-



app_name = 'thebus'
urlpatterns = [
    # stop views
    url(r'^stops/?$', stop_views.stop_search, name="stop_search"),

    url(r'^(?P<stop_id>\d+)/?$', stop_views.stop_details, {'route': None},
        name="stop_details_no_route"),

    url(r'^(?P<stop_id>\d+):(?P<route>[a-zA-Z0-9]+)/?$',
        stop_views.stop_details,
        name="stop_details"),

    url(r'^(?P<stop_id>\d+):(?P<route>[a-zA-Z0-9]+)/bus/(?P<bus>\d+)/trip/(?P<trip_id>[\d\w\.]+)/?$',
        stop_views.stop_bus_map,
        name="stop_bus_map"),

    url(r'^(?P<stop_id>\d+):(?P<route>[a-zA-Z0-9]+)/trip/(?P<trip_id>[\d\w\.]+)/?$',

# Path: allbus/thebus/views/bus_views.py
# def all_buses(request):
# def bus_details(request, bus):
# 
# Path: allbus/thebus/views/stop_views.py
# STRIP_CONNECTORS = ['or', 'and', 'near', '+', '&']
# def stop_details(request, stop_id, route=None):
# def stop_nearby(request, latitude, longitude):
# def stop_search(request):
# def stop_bus_map(request, stop_id, route, trip_id, bus = None):
# 
# Path: allbus/thebus/views/trip_views.py
# def trip_details(request, trip_id):


# Path: allbus/thebus/urls.py
from django.conf.urls import url
from .views import bus_views
from .views import stop_views
from .views import trip_views

#!/usr/bin/env python
# -*- coding: utf-8 -*-



app_name = 'thebus'
urlpatterns = [
    # stop views
    url(r'^stops/?$', stop_views.stop_search, name="stop_search"),

    url(r'^(?P<stop_id>\d+)/?$', stop_views.stop_details, {'route': None},
        name="stop_details_no_route"),

    url(r'^(?P<stop_id>\d+):(?P<route>[a-zA-Z0-9]+)/?$',
        stop_views.stop_details,
        name="stop_details"),

    url(r'^(?P<stop_id>\d+):(?P<route>[a-zA-Z0-9]+)/bus/(?P<bus>\d+)/trip/(?P<trip_id>[\d\w\.]+)/?$',
        stop_views.stop_bus_map,
        name="stop_bus_map"),

    url(r'^(?P<stop_id>\d+):(?P<route>[a-zA-Z0-9]+)/trip/(?P<trip_id>[\d\w\.]+)/?$',

        stop_views.stop_bus_map,