X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/3eaf58c151ca9c790dcf6d0937dc186c5c790422..dd4406ed41653a6b3c2b2adeda1d524358203498:/app/assets/javascripts/routing_engines/mapquest_bicycle.js
diff --git a/app/assets/javascripts/routing_engines/mapquest_bicycle.js b/app/assets/javascripts/routing_engines/mapquest_bicycle.js
index b08096955..5d5ff9ffd 100644
--- a/app/assets/javascripts/routing_engines/mapquest_bicycle.js
+++ b/app/assets/javascripts/routing_engines/mapquest_bicycle.js
@@ -3,10 +3,9 @@
// http://open.mapquestapi.com/directions/
// https://github.com/apmon/openstreetmap-website/blob/21edc353a4558006f0ce23f5ec3930be6a7d4c8b/app/controllers/routing_controller.rb#L153
-// *** needs to give credit
-
OSM.RoutingEngines.list.push({
name: "javascripts.directions.engines.mapquest_bike",
+ creditline: 'Directions courtesy of MapQuest
',
draggable: false,
_hints: {},
MQ_SPRITE_MAP: {
@@ -61,5 +60,6 @@ OSM.RoutingEngines.list.push({
steps.push([L.latLng(s.startPoint.lat, s.startPoint.lng), d, s.narrative, s.distance*1000]);
}
router.setItinerary( { steps: steps });
+ return true;
}
});