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-22 02:08:33 +0200 |
| commit | 1091d481584af4662488ee83d7fa1421f8d1700c (patch) | |
| tree | 0fb060c8cc3c7280a4f9d643db34216597a0b302 /example_project/settings.py | |
| parent | 232a1de132fa75431b45c008b72dafbcc6130b14 (diff) | |
| download | Chimère-1091d481584af4662488ee83d7fa1421f8d1700c.tar.bz2 Chimère-1091d481584af4662488ee83d7fa1421f8d1700c.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 5684386..750d798 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 @@ -78,6 +79,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', @@ -85,6 +97,8 @@ CHIMERE_ROUTING_ENGINE = { 'DB_PATH': '/var/local/routino/', } +NOMINATIM_URL = 'http://nominatim.openstreetmap.org/search' + ADMINS = ( # ('Your Name', 'your_email@domain.com'), ) |
