Use osm.org for routing instead of OSRM demo site (fix #219)

This commit is contained in:
Yohan Boniface 2015-10-11 10:23:48 +02:00
parent f6f2d8dca9
commit 6960299d21

View file

@ -128,9 +128,9 @@ MIDDLEWARE_CLASSES = (
'django.middleware.http.ConditionalGetMiddleware', 'django.middleware.http.ConditionalGetMiddleware',
) )
#============================================================================== # =============================================================================
# Auth / security # Auth / security
#============================================================================== # =============================================================================
AUTHENTICATION_BACKENDS += ( AUTHENTICATION_BACKENDS += (
) )
@ -140,7 +140,7 @@ AUTHENTICATION_BACKENDS += (
# ============================================================================= # =============================================================================
LEAFLET_STORAGE_ALLOW_ANONYMOUS = False LEAFLET_STORAGE_ALLOW_ANONYMOUS = False
LEAFLET_STORAGE_EXTRA_URLS = { 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}' 'ajax_proxy': '/ajax-proxy/?url={url}'
} }
SITE_URL = "http://umap.org" SITE_URL = "http://umap.org"