diff options
| author | Étienne Loks <etienne.loks@peacefrogs.net> | 2012-08-15 01:38:28 +0200 |
|---|---|---|
| committer | Étienne Loks <etienne.loks@peacefrogs.net> | 2012-08-15 01:38:28 +0200 |
| commit | 12d8f2d9b97051056077e344499c765e1f95bda7 (patch) | |
| tree | 7576b14bba62bccb3ab9b243c9cba48464d8e529 /chimere/urls.py | |
| parent | 9d22e093dac0d30d6de797222952c1e5f938382c (diff) | |
| download | Chimère-12d8f2d9b97051056077e344499c765e1f95bda7.tar.bz2 Chimère-12d8f2d9b97051056077e344499c765e1f95bda7.zip | |
First working version of routing.
* add an utilitary Routing class to manage different routing system
* implement the routing with routino
* add a view to manage routes
* itinerary panel template
* JS management of routing:
* manage flag markers on the map
* request the route when start and finish flag are set
* display the route and the itinerary description
* add of two flags images
* itinerary panel CSS
* french translation update
Diffstat (limited to 'chimere/urls.py')
| -rw-r--r-- | chimere/urls.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/chimere/urls.py b/chimere/urls.py index a232382..ad88e32 100644 --- a/chimere/urls.py +++ b/chimere/urls.py @@ -51,6 +51,14 @@ if settings.CHIMERE_FEEDS: LatestPOIsByZoneID(), name='feeds-areaid'), ) +if settings.CHIMERE_ENABLE_ROUTING: + urlpatterns += patterns('chimere.views', + url(r'^(?P<area_name>[a-zA-Z0-9_-]*/)?route/'\ + r'(?P<lon1>[-]?[0-9]+[.]?[0-9]*)_(?P<lat1>[-]?[0-9]+[.]?[0-9]*)_'\ + r'(?P<lon2>[-]?[0-9]+[.]?[0-9]*)_(?P<lat2>[-]?[0-9]+[.]?[0-9]*)$', + 'route', name="route"), + ) + urlpatterns += patterns('chimere.views', url(r'^charte/?$', 'charte', name="charte"), url(r'^(?P<area_name>[a-zA-Z0-9_-]+/)?contact/?$', 'contactus', name="contact"), |
