我在本地设置了 OSRM (node-osrm),它为服务器上的路由产生了正确的结果。但是,当我通过传单路由机器向它请求路由时,我在浏览器中收到以下错误:
leaflet-routing-machine.js:2605 Routing error: Object {status: undefined}status: undefined__proto__: ObjectdefaultErrorHandler
@ leaflet-routing-machine.js:2605fire
@ leaflet-src.js:588(anonymous function)
@ leaflet-routing-machine.js:2900_routeDone
@ leaflet-routing-machine.js:4693(anonymous function)
@ leaflet-routing-machine.js:4645loaded
@ leaflet-routing-machine.js:46
该应用程序与 mapbox 路由器一起使用,响应看起来略有不同(不同的顺序)。