mapbox / osrm-matching-inspection Goto Github PK
View Code? Open in Web Editor NEWTool to inspect matching generated by the road-network matching plugin in OSRM
License: BSD 2-Clause "Simplified" License
Tool to inspect matching generated by the road-network matching plugin in OSRM
License: BSD 2-Clause "Simplified" License
Now that node-osrm was deprecated, is there a method for applying this feature using the update?
Hi,
I'm trying to use the matching inspection tool. The GPX data is matched, but the diagram, traces and matchings aren't displayed on the map - I always get an "Uncaught TypeError: Cannot read property 'states' of undefined"/"Uncaught TypeError: Cannot read property 'breakage' of undefined" error at matching.js line 22 / osrm.matching.js line 2502.
matching.js/osrm.matching.js
function onMatched(response) {
var states = response.debug.states,
breakage = response.debug.breakage,
matchings = response.matchings,
trace = response.trace;
...
This is the response:
Object
matchings: Array[1]
0: Object
confidence: 0.951211
geometry: "ot|}c@bkzx{DxbAdc@ztAdk@hWzJdt@h]rt@`Y~^jQxl@nUzyBt_AhkBxv@rjBjw@LVqN`V}fBmv@glBox@jKaVlCyG{cBqs@kToLwmAcf@khB_w@wmBmx@mgAgd@yEsBoeAqd@udAed@gxAam@agAcf@{cAcd@c~@w_@e|@m`@sqB}z@gAi@"
indices: Array[4]
matched_points: Array[4]
__proto__: Object
length: 1
__proto__: Array[0]
trace: Object
classify: true
coordinates: Array[4]
__proto__: Object
__proto__: Object
__defineGetter__: function __defineGetter__() { [native code] }
__defineSetter__: function __defineSetter__() { [native code] }
__lookupGetter__: function __lookupGetter__() { [native code] }
__lookupSetter__: function __lookupSetter__() { [native code] }
constructor: function Object() { [native code] }
hasOwnProperty: function hasOwnProperty() { [native code] }
isPrototypeOf: function isPrototypeOf() { [native code] }
propertyIsEnumerable: function propertyIsEnumerable() { [native code] }
toLocaleString: function toLocaleString() { [native code] }
toString: function toString() { [native code] }
valueOf: function valueOf() { [native code] }
get __proto__: function __proto__() { [native code] }
set __proto__: function __proto__() { [native code] }
greetings, Sabine
The link Classifying section of the readme to the OSRM matching tools is dead. Where can I find it?
I tried to install the server components with npm install
and I get:
npm WARN package.json @0.0.1 No repository field.
npm WARN package.json Dependency 'browserify' exists in both dependencies and devDependencies, using 'browserify@^9.0.3' from dependencies
npm ERR! Failed resolving git HEAD (git://github.com/Project-OSRM/node-osrm.git) fatal: bad object dc53afcbd1e0b58700c4aeab62e149b6250127e4
npm ERR! Failed resolving git HEAD (git://github.com/Project-OSRM/node-osrm.git)
npm ERR! Darwin 14.3.0
npm ERR! argv "node" "/usr/local/bin/npm" "install"
npm ERR! node v0.10.35
npm ERR! npm v2.1.18
npm ERR! code 128
npm ERR! Command failed: fatal: bad object dc53afcbd1e0b58700c4aeab62e149b6250127e4
npm ERR!
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR! <http://github.com/npm/npm/issues>
npm ERR! Please include the following file with any support request:
npm ERR! /Users/ustroetz/projects/osrm-matching-inspection/npm-debug.log
Is this version stable and should work or is it still in development?
classify.html
is trying to get leaflet-routing-machine.css
. Either the file is no longer necessary or it is missing.
I am trying to import traces. The gpx files are in the folder data
.
If I use node bin/server.js data
I get the following error:
module.js:338
throw err;
^
Error: Cannot find module '/Users/ustroetz/projects/osrm-matching-inspection/node_modules/sqlite3/lib/binding/node-v14-darwin-x64/node_sqlite3.node'
at Function.Module._resolveFilename (module.js:336:15)
at Function.Module._load (module.js:278:25)
at Module.require (module.js:365:17)
at require (module.js:384:17)
at Object.<anonymous> (/Users/ustroetz/projects/osrm-matching-inspection/node_modules/sqlite3/lib/sqlite3.js:4:15)
at Module._compile (module.js:460:26)
at Object.Module._extensions..js (module.js:478:10)
at Module.load (module.js:355:32)
at Function.Module._load (module.js:310:12)
at Module.require (module.js:365:17)
The module node_sqlite3.node
exists under the specified path. What could be the reason for the error?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.