Java map matching library for integrating the map into software and services with state-of-the-art online and offline map matching that can be used stand-alone and in the cloud.
Apache License 2.0
671
stars
183
forks
source link
Question: cannot see the result in http://localhost:3000 when the time interval is 45s #52
I have a dataset which is achieved in 1Hz and I change the time interval to 45s, then dataset was as below:
[ {"id":"1","time":1381601722000,"point":"POINT(-37.798779 144.947925)"}, {"id":"2","time":1381601766000,"point":"POINT(-37.79859 144.946681)"}, {"id":"3","time":1381601811000,"point":"POINT(-37.79567 144.946641)"}, {"id":"4","time":1381601856000,"point":"POINT(-37.793667 144.947059)"}, {"id":"5","time":1381601901000,"point":"POINT(-37.793649 144.94706)"}, {"id":"6","time":1381601946000,"point":"POINT(-37.790623 144.94347)"}, {"id":"7","time":1381601991000,"point":"POINT(-37.789682 144.942368)"}, {"id":"8","time":1381602036000,"point":"POINT(-37.78931 144.94186)"}, {"id":"9","time":1381602081000,"point":"POINT(-37.786719 144.941969)"}, {"id":"10","time":1381602126000,"point":"POINT(-37.781414 144.941971)"}, {"id":"11","time":1381602171000,"point":"POINT(-37.776424 144.942933)"}, {"id":"12","time":1381602216000,"point":"POINT(-37.775427 144.945269)"}, {"id":"13","time":1381602261000,"point":"POINT(-37.775407 144.94885)"}, {"id":"14","time":1381602306000,"point":"POINT(-37.7709 144.949668)"}, {"id":"15","time":1381602351000,"point":"POINT(-37.770247 144.949717)"}, {"id":"16","time":1381602396000,"point":"POINT(-37.76955 144.944293)"}, {"id":"17","time":1381602441000,"point":"POINT(-37.76568 144.94356)"}, {"id":"18","time":1381602486000,"point":"POINT(-37.764993 144.944689)"}, {"id":"19","time":1381602531000,"point":"POINT(-37.765779 144.944819)"}, {"id":"20","time":1381602576000,"point":"POINT(-37.765779 144.944842)"}, {"id":"21","time":1381602621000,"point":"POINT(-37.765797 144.944841)"}, {"id":"22","time":1381602666000,"point":"POINT(-37.766259 144.947255)"}, {"id":"23","time":1381602711000,"point":"POINT(-37.765861 144.949147)"}, {"id":"24","time":1381602756000,"point":"POINT(-37.765888 144.952773)"}, {"id":"25","time":1381602801000,"point":"POINT(-37.766713 144.959587)"}, {"id":"26","time":1381602846000,"point":"POINT(-37.766998 144.962017)"}, {"id":"27","time":1381602891000,"point":"POINT(-37.766992 144.962038)"}, {"id":"28","time":1381602936000,"point":"POINT(-37.765557 144.963223)"}, {"id":"29","time":1381602981000,"point":"POINT(-37.766301 144.970226)"}, {"id":"30","time":1381603026000,"point":"POINT(-37.766576 144.973278)"}, {"id":"31","time":1381603071000,"point":"POINT(-37.767166 144.978804)"}, {"id":"32","time":1381603116000,"point":"POINT(-37.76727 144.979882)"}, {"id":"33","time":1381603161000,"point":"POINT(-37.767511 144.984724)"}, {"id":"34","time":1381603206000,"point":"POINT(-37.768281 144.990439)"}, {"id":"35","time":1381603251000,"point":"POINT(-37.767117 144.99148)"}, {"id":"36","time":1381603296000,"point":"POINT(-37.761218 144.992643)"}, {"id":"37","time":1381603341000,"point":"POINT(-37.756587 144.993618)"}, {"id":"38","time":1381603386000,"point":"POINT(-37.752244 144.994718)"}, {"id":"39","time":1381603431000,"point":"POINT(-37.749637 144.995701)"}, {"id":"40","time":1381603476000,"point":"POINT(-37.746244 144.996876)"}, {"id":"41","time":1381603521000,"point":"POINT(-37.744987 144.997368)"}, {"id":"42","time":1381603566000,"point":"POINT(-37.744998 144.99739)"}, {"id":"43","time":1381603611000,"point":"POINT(-37.745126 145.002703)"}, {"id":"44","time":1381603656000,"point":"POINT(-37.745119 145.002742)"}, {"id":"45","time":1381603701000,"point":"POINT(-37.745567 145.007247)"}, {"id":"46","time":1381603746000,"point":"POINT(-37.746385 145.015173)"}, {"id":"47","time":1381603791000,"point":"POINT(-37.747081 145.021043)"}, {"id":"48","time":1381603836000,"point":"POINT(-37.747071 145.021092)"}, {"id":"49","time":1381603881000,"point":"POINT(-37.747854 145.027653)"}, {"id":"50","time":1381603926000,"point":"POINT(-37.748895 145.033377)"}, {"id":"51","time":1381603971000,"point":"POINT(-37.748638 145.036434)"}, {"id":"52","time":1381604016000,"point":"POINT(-37.748582 145.036447)"}, {"id":"53","time":1381604061000,"point":"POINT(-37.747892 145.036903)"}, {"id":"54","time":1381604106000,"point":"POINT(-37.747603 145.039752)"}, {"id":"55","time":1381604151000,"point":"POINT(-37.749438 145.04146)"}, {"id":"56","time":1381604196000,"point":"POINT(-37.749467 145.041445)"} ]
then I run the Tracker server and it returned "SUCCESS" for each point after 30-40s, however, I cannot see the red pot, which means the online map matching result, in http://localhost:3000. But I can see the red pot when I use the whole dataset whose time interval is 1Hz. How can I get the final result in json or other format so that I can visualize the result in http://geojson.io/? I use the melbourne.osm.pbf file from https://mapzen.com/data/metro-extracts/metro/melbourne_australia/ and the default road-types.json. The whole dataset is here http://people.eng.unimelb.edu.au/henli/projects/map-matching/gps_track.txt.
I also run the matcher server. The Matcher Server is successfully set up but return empty coordinates list.
user@user-VirtualBox:~/barefoot$ python util/submit/batch.py --host localhost --port 1235 --file 45.json SUCCESS {"coordinates":[],"type":"MultiLineString"}
And when I looked at the server, I found the info that "HMM break - no state emissions".
Here is Server Properties:
server.port=1234 server.timeout.request=15000 server.timeout.response=6000000 server.connections=20 matcher.sigma=4.5 matcher.lambda=0.0 matcher.distance.max=15000 matcher.radius.max=500 matcher.interval.min=1000 matcher.distance.min=0 matcher.threads=8
and Tracker Properties is:
server.port=1234 server.timeout.request=500 server.timeout.response=1000 server.connections=100 matcher.sigma=5 matcher.lambda=0.0 matcher.distance.max=5000 matcher.radius.max=50 matcher.interval.min=1000 matcher.distance.min=0 matcher.threads=8 tracker.state.ttl=60 tracker.port=1235
I have a dataset which is achieved in 1Hz and I change the time interval to 45s, then dataset was as below:
[ {"id":"1","time":1381601722000,"point":"POINT(-37.798779 144.947925)"}, {"id":"2","time":1381601766000,"point":"POINT(-37.79859 144.946681)"}, {"id":"3","time":1381601811000,"point":"POINT(-37.79567 144.946641)"}, {"id":"4","time":1381601856000,"point":"POINT(-37.793667 144.947059)"}, {"id":"5","time":1381601901000,"point":"POINT(-37.793649 144.94706)"}, {"id":"6","time":1381601946000,"point":"POINT(-37.790623 144.94347)"}, {"id":"7","time":1381601991000,"point":"POINT(-37.789682 144.942368)"}, {"id":"8","time":1381602036000,"point":"POINT(-37.78931 144.94186)"}, {"id":"9","time":1381602081000,"point":"POINT(-37.786719 144.941969)"}, {"id":"10","time":1381602126000,"point":"POINT(-37.781414 144.941971)"}, {"id":"11","time":1381602171000,"point":"POINT(-37.776424 144.942933)"}, {"id":"12","time":1381602216000,"point":"POINT(-37.775427 144.945269)"}, {"id":"13","time":1381602261000,"point":"POINT(-37.775407 144.94885)"}, {"id":"14","time":1381602306000,"point":"POINT(-37.7709 144.949668)"}, {"id":"15","time":1381602351000,"point":"POINT(-37.770247 144.949717)"}, {"id":"16","time":1381602396000,"point":"POINT(-37.76955 144.944293)"}, {"id":"17","time":1381602441000,"point":"POINT(-37.76568 144.94356)"}, {"id":"18","time":1381602486000,"point":"POINT(-37.764993 144.944689)"}, {"id":"19","time":1381602531000,"point":"POINT(-37.765779 144.944819)"}, {"id":"20","time":1381602576000,"point":"POINT(-37.765779 144.944842)"}, {"id":"21","time":1381602621000,"point":"POINT(-37.765797 144.944841)"}, {"id":"22","time":1381602666000,"point":"POINT(-37.766259 144.947255)"}, {"id":"23","time":1381602711000,"point":"POINT(-37.765861 144.949147)"}, {"id":"24","time":1381602756000,"point":"POINT(-37.765888 144.952773)"}, {"id":"25","time":1381602801000,"point":"POINT(-37.766713 144.959587)"}, {"id":"26","time":1381602846000,"point":"POINT(-37.766998 144.962017)"}, {"id":"27","time":1381602891000,"point":"POINT(-37.766992 144.962038)"}, {"id":"28","time":1381602936000,"point":"POINT(-37.765557 144.963223)"}, {"id":"29","time":1381602981000,"point":"POINT(-37.766301 144.970226)"}, {"id":"30","time":1381603026000,"point":"POINT(-37.766576 144.973278)"}, {"id":"31","time":1381603071000,"point":"POINT(-37.767166 144.978804)"}, {"id":"32","time":1381603116000,"point":"POINT(-37.76727 144.979882)"}, {"id":"33","time":1381603161000,"point":"POINT(-37.767511 144.984724)"}, {"id":"34","time":1381603206000,"point":"POINT(-37.768281 144.990439)"}, {"id":"35","time":1381603251000,"point":"POINT(-37.767117 144.99148)"}, {"id":"36","time":1381603296000,"point":"POINT(-37.761218 144.992643)"}, {"id":"37","time":1381603341000,"point":"POINT(-37.756587 144.993618)"}, {"id":"38","time":1381603386000,"point":"POINT(-37.752244 144.994718)"}, {"id":"39","time":1381603431000,"point":"POINT(-37.749637 144.995701)"}, {"id":"40","time":1381603476000,"point":"POINT(-37.746244 144.996876)"}, {"id":"41","time":1381603521000,"point":"POINT(-37.744987 144.997368)"}, {"id":"42","time":1381603566000,"point":"POINT(-37.744998 144.99739)"}, {"id":"43","time":1381603611000,"point":"POINT(-37.745126 145.002703)"}, {"id":"44","time":1381603656000,"point":"POINT(-37.745119 145.002742)"}, {"id":"45","time":1381603701000,"point":"POINT(-37.745567 145.007247)"}, {"id":"46","time":1381603746000,"point":"POINT(-37.746385 145.015173)"}, {"id":"47","time":1381603791000,"point":"POINT(-37.747081 145.021043)"}, {"id":"48","time":1381603836000,"point":"POINT(-37.747071 145.021092)"}, {"id":"49","time":1381603881000,"point":"POINT(-37.747854 145.027653)"}, {"id":"50","time":1381603926000,"point":"POINT(-37.748895 145.033377)"}, {"id":"51","time":1381603971000,"point":"POINT(-37.748638 145.036434)"}, {"id":"52","time":1381604016000,"point":"POINT(-37.748582 145.036447)"}, {"id":"53","time":1381604061000,"point":"POINT(-37.747892 145.036903)"}, {"id":"54","time":1381604106000,"point":"POINT(-37.747603 145.039752)"}, {"id":"55","time":1381604151000,"point":"POINT(-37.749438 145.04146)"}, {"id":"56","time":1381604196000,"point":"POINT(-37.749467 145.041445)"} ]
then I run the Tracker server and it returned "SUCCESS" for each point after 30-40s, however, I cannot see the red pot, which means the online map matching result, in http://localhost:3000. But I can see the red pot when I use the whole dataset whose time interval is 1Hz. How can I get the final result in json or other format so that I can visualize the result in http://geojson.io/? I use the melbourne.osm.pbf file from https://mapzen.com/data/metro-extracts/metro/melbourne_australia/ and the default road-types.json. The whole dataset is here http://people.eng.unimelb.edu.au/henli/projects/map-matching/gps_track.txt.I also run the matcher server. The Matcher Server is successfully set up but return empty coordinates list.
user@user-VirtualBox:~/barefoot$ python util/submit/batch.py --host localhost --port 1235 --file 45.json SUCCESS {"coordinates":[],"type":"MultiLineString"}
And when I looked at the server, I found the info that "HMM break - no state emissions".Here is Server Properties:
server.port=1234 server.timeout.request=15000 server.timeout.response=6000000 server.connections=20 matcher.sigma=4.5 matcher.lambda=0.0 matcher.distance.max=15000 matcher.radius.max=500 matcher.interval.min=1000 matcher.distance.min=0 matcher.threads=8
and Tracker Properties is:
server.port=1234 server.timeout.request=500 server.timeout.response=1000 server.connections=100 matcher.sigma=5 matcher.lambda=0.0 matcher.distance.max=5000 matcher.radius.max=50 matcher.interval.min=1000 matcher.distance.min=0 matcher.threads=8 tracker.state.ttl=60 tracker.port=1235