-
Notifications
You must be signed in to change notification settings - Fork 183
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Pedestrian and Bicycle matching #6
Comments
Map matching of pedestrians and bicycles is an interesting use case, but is not in development by ourselves. I have two considerations/suggestions:
|
Thanks for getting back to me so quickly. You were right, the import script just works. I had forgotten to delete the generated .bfmap file before importing again. The matching also worked pretty well, almost perfect! The drawback is that the matching time increased from 15 to 50 seconds, on an off-road bicycle track with 3000 points. Not sure if much can be done about that. For reference, the area of interest: http://geojson.io/#map=14/38.7732/-9.4397 , and the modified road-types file: https://web.ist.utl.pt/ist173940/road-types.json Thanks again for the help Sebastian. |
Wow, that's actually great to hear! There may be some parameters you could tune to reduce computation time: final double bound =
Math.max(1000d, Math.min(distance, ((candidates.one().time() - predecessors.one()
.time()) / 1000) * 100)); The final double bound =
Math.max(100d, Math.min(distance, ((candidates.one().time() - predecessors.one()
.time()) / 1000) * 25)); Is it possible to get a sample track from you for experimenting with it? I would highly acknowledge such a contribution! |
I would close this issue since it's not really an issue any more, but please keep me up to date and feel free to contribute. :) |
Hello again, Just a quick update. I tried your suggestion of changing the Matcher with your recommended values. I recompiled with Maven, but the result was the same as the original and took the same time (about 50 seconds). Here is the result: https://web.ist.utl.pt/ist173940/sintraBike/defaultMatcher.json I noticed the config/server.properties file and changed the matcherMaxDistance to 10000 (from 15000) and matcherMaxRadius to 100 (from 200). This decreased the time by almost half (30 seconds) and still gave great results. Here it is: https://web.ist.utl.pt/ist173940/sintraBike/modifiedMatcher.json Thanks again for the support and great suggestions. |
Thanks for the great insight! I forgot to mention, that server.properties overwrites the code defaults. Maximum radius decreases the number of matching candidates and, hence, decreases not only computation time but also quality of map matching while the other parameters usually don't decrease quality that much. |
I had not thought of changing the minimum distance. I'll keep fiddling with the parameters based on your advice until I'm satisfied. |
Hello,
I'm working on a project which tracks users on foot and on bicycle.
Barefoot seems to be only able to match on motor vehicles (which makes sense given the name of the copywrite holder).
I was curious if it would be difficult to add these capabilities to Barefoot. I noticed there is a bfmap/road-types.json file which I assume states the road types to get from OSM. I tried adding the footway, cycleway and path tags, but the final result was the same (only slower).
Thanks for taking the time to read. I'm not sure if this constitutes as an issue, but any information you can provide would be much appreciated.
Cheers,
Filipe
The text was updated successfully, but these errors were encountered: