{"action":"created","issue":{"url":"https://api.github.com/repos/mapbox/osrm-matching-inspection/issues/7","labels_url":"https://api.github.com/repos/mapbox/osrm-matching-inspection/issues/7/labels{/name}","comments_url":"https://api.github.com/repos/mapbox/osrm-matching-inspection/issues/7/comments","events_url":"https://api.github.com/repos/mapbox/osrm-matching-inspection/issues/7/events","html_url":"https://github.com/mapbox/osrm-matching-inspection/issues/7","id":78421098,"number":7,"title":"Missing breakage/states properties - matching, traces and diagram not displayed on map - ","user":{"login":"sabinekoch","id":12334718,"avatar_url":"https://avatars.githubusercontent.com/u/12334718?v=3","gravatar_id":"","url":"https://api.github.com/users/sabinekoch","html_url":"https://github.com/sabinekoch","followers_url":"https://api.github.com/users/sabinekoch/followers","following_url":"https://api.github.com/users/sabinekoch/following{/other_user}","gists_url":"https://api.github.com/users/sabinekoch/gists{/gist_id}","starred_url":"https://api.github.com/users/sabinekoch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sabinekoch/subscriptions","organizations_url":"https://api.github.com/users/sabinekoch/orgs","repos_url":"https://api.github.com/users/sabinekoch/repos","events_url":"https://api.github.com/users/sabinekoch/events{/privacy}","received_events_url":"https://api.github.com/users/sabinekoch/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-05-20T08:01:02Z","updated_at":"2015-05-20T15:24:23Z","closed_at":"2015-05-20T15:24:23Z","body":"Hi,\r\n\r\nI'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.\r\n\r\n```javaScript\r\nmatching.js/osrm.matching.js \r\n\r\nfunction onMatched(response) {\r\n  var states = response.debug.states,\r\n      breakage = response.debug.breakage,\r\n      matchings = response.matchings,\r\n      trace = response.trace;\r\n...\r\n```\r\n\r\nThis is the response:\r\n\r\n```\r\nObject \r\n\tmatchings: Array[1]\r\n\t\t0: Object\r\n\t\t\tconfidence: 0.951211\r\n\t\t\tgeometry: \"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@\"\r\n\t\t\tindices: Array[4]\r\n\t\t\tmatched_points: Array[4]\r\n\t\t\t__proto__: Object\r\n\t\tlength: 1\r\n\t\t__proto__: Array[0]\r\n\ttrace: Object\r\n\t\tclassify: true\r\n\t\tcoordinates: Array[4]\r\n\t\t__proto__: Object\r\n\t__proto__: Object\r\n\t\t__defineGetter__: function __defineGetter__() { [native code] }\r\n\t\t__defineSetter__: function __defineSetter__() { [native code] }\r\n\t\t__lookupGetter__: function __lookupGetter__() { [native code] }\r\n\t\t__lookupSetter__: function __lookupSetter__() { [native code] }\r\n\t\tconstructor: function Object() { [native code] }\r\n\t\thasOwnProperty: function hasOwnProperty() { [native code] }\r\n\t\tisPrototypeOf: function isPrototypeOf() { [native code] }\r\n\t\tpropertyIsEnumerable: function propertyIsEnumerable() { [native code] }\r\n\t\ttoLocaleString: function toLocaleString() { [native code] }\r\n\t\ttoString: function toString() { [native code] }\r\n\t\tvalueOf: function valueOf() { [native code] }\r\n\t\tget __proto__: function __proto__() { [native code] }\r\n\t\tset __proto__: function __proto__() { [native code] }\r\n```\r\n\r\ngreetings, Sabine"},"comment":{"url":"https://api.github.com/repos/mapbox/osrm-matching-inspection/issues/comments/103924868","html_url":"https://github.com/mapbox/osrm-matching-inspection/issues/7#issuecomment-103924868","issue_url":"https://api.github.com/repos/mapbox/osrm-matching-inspection/issues/7","id":103924868,"user":{"login":"sabinekoch","id":12334718,"avatar_url":"https://avatars.githubusercontent.com/u/12334718?v=3","gravatar_id":"","url":"https://api.github.com/users/sabinekoch","html_url":"https://github.com/sabinekoch","followers_url":"https://api.github.com/users/sabinekoch/followers","following_url":"https://api.github.com/users/sabinekoch/following{/other_user}","gists_url":"https://api.github.com/users/sabinekoch/gists{/gist_id}","starred_url":"https://api.github.com/users/sabinekoch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sabinekoch/subscriptions","organizations_url":"https://api.github.com/users/sabinekoch/orgs","repos_url":"https://api.github.com/users/sabinekoch/repos","events_url":"https://api.github.com/users/sabinekoch/events{/privacy}","received_events_url":"https://api.github.com/users/sabinekoch/received_events","type":"User","site_admin":false},"created_at":"2015-05-20T15:24:23Z","updated_at":"2015-05-20T15:24:23Z","body":"Perfect, thanks!"}}