Pass on routing failures from MapQuest

This commit is contained in:
Richard Fairhurst 2014-03-08 14:14:43 +00:00
parent 2f0794738c
commit 15904542a6

View file

@ -51,7 +51,7 @@ MapQuestEngine.prototype.createConfig = function() {
this.requestCORS(url);
},
gotRoute: function(router,data) {
// *** what if no route?
if (data.info.statuscode!=0) return false;
var poly=[];
var shape=data.route.shape.shapePoints;