From 6960299d213dd404975e6d846bfda745de65aa5d Mon Sep 17 00:00:00 2001 From: Yohan Boniface Date: Sun, 11 Oct 2015 10:23:48 +0200 Subject: [PATCH] Use osm.org for routing instead of OSRM demo site (fix #219) --- umap/settings/base.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/umap/settings/base.py b/umap/settings/base.py index 30a0e70c..9c022784 100644 --- a/umap/settings/base.py +++ b/umap/settings/base.py @@ -128,9 +128,9 @@ MIDDLEWARE_CLASSES = ( 'django.middleware.http.ConditionalGetMiddleware', ) -#============================================================================== +# ============================================================================= # Auth / security -#============================================================================== +# ============================================================================= AUTHENTICATION_BACKENDS += ( ) @@ -140,7 +140,7 @@ AUTHENTICATION_BACKENDS += ( # ============================================================================= LEAFLET_STORAGE_ALLOW_ANONYMOUS = False LEAFLET_STORAGE_EXTRA_URLS = { - 'routing': 'http://map.project-osrm.org/?loc={lat},{lng}&hl={locale}', + 'routing': 'http://www.openstreetmap.org/directions?engine=osrm_car&route={lat},{lng}&locale={locale}#map={zoom}/{lat}/{lng}', # noqa 'ajax_proxy': '/ajax-proxy/?url={url}' } SITE_URL = "http://umap.org"