// http://cloudmade.com/documentation/routing
OSM.RoutingEngines.list.push({
- name: 'Foot (CloudMade)',
+ name: "javascripts.directions.engines.cloudmade_foot",
+ creditline: 'Directions courtesy of <a href="http://cloudmade.com/products/routing" target="_blank">Cloudmade</a>',
draggable: false,
CM_SPRITE_MAP: {
"C": 1,
"TSHR": 4,
"TU": 5
}, // was half expecting to see TLDR in there
- getRoute: function(final,points) {
+ getRoute: function(isFinal,points) {
var url="http://routes.cloudmade.com/8ee2a50541944fb9bcedded5165f09d9/api/0.3/";
var p=[];
for (var i=0; i<points.length; i++) {
}
url+=p.join(',');
url+="/foot.js";
- this.requestJSONP(url+"?callback=");
+ url+="?lang=" + I18n.currentLocale();
+ this.requestJSONP(url+"&callback=");
},
gotRoute: function(router,data) {
router.setPolyline(data.route_geometry);