diff options
| author | Étienne Loks <etienne.loks@peacefrogs.net> | 2012-08-17 13:13:15 +0200 |
|---|---|---|
| committer | Étienne Loks <etienne.loks@peacefrogs.net> | 2012-08-17 13:13:15 +0200 |
| commit | 502cc25a0dc57a61289c245d653f96e2b3009efa (patch) | |
| tree | 83c15cf049d58c222e30d00d1991d8b6c6249f02 /example_project/settings.py | |
| parent | e0029f8e8d11736b41046f2a7390b6f5303fbb58 (diff) | |
| download | Chimère-502cc25a0dc57a61289c245d653f96e2b3009efa.tar.bz2 Chimère-502cc25a0dc57a61289c245d653f96e2b3009efa.zip | |
Improve routing interface and functionalities
* fix POI clicking
* create a nominatim widget to get coordinates from text
* create a JQuery UI button select widget
* create a routing form to get itinerary from a textual form
* CSS for the routing form
* Reverse nominatim: when a point is get for routing on the map
label for this point is get from nominatim
* Add transport management by user choice
* Update french translation
Diffstat (limited to 'example_project/settings.py')
| -rw-r--r-- | example_project/settings.py | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/example_project/settings.py b/example_project/settings.py index ead2c93..46b8e95 100644 --- a/example_project/settings.py +++ b/example_project/settings.py @@ -5,6 +5,7 @@ # overload all theses settings in your local_settings.py file import os +_ = lambda s: s DEBUG = False TEMPLATE_DEBUG = DEBUG @@ -77,6 +78,17 @@ CHIMERE_SHAPEFILE_ENCODING = 'ISO-8859-1' # enable routing in Chimère CHIMERE_ENABLE_ROUTING = False +CHIMERE_ROUTING_TRANSPORT = (('foot', _(u"Foot")), + ('bicycle', _(u"Bicycle")), + ('motorcar', _(u"Motorcar")), + ) + +CHIMERE_ROUTING_SPEEDS = {'foot':((3, _(u"You are walking slowly")), + (6, _(u"You are walking pretty quickly")),), + 'bicycle':((16, _(u"You are riding pretty slowly")), + (22, _(u"You are riding pretty quickly")),) + } + # available routing engine: 'routino' CHIMERE_ROUTING_ENGINE = { 'ENGINE': 'routino', @@ -84,6 +96,8 @@ CHIMERE_ROUTING_ENGINE = { 'DB_PATH': '/var/local/routino/', } +NOMINATIM_URL = 'http://nominatim.openstreetmap.org/search' + ADMINS = ( # ('Your Name', 'your_email@domain.com'), ) |
