barefoot icon indicating copy to clipboard operation
barefoot copied to clipboard

Road information available on online tracking?

Open argltuc opened this issue 6 years ago • 3 comments

With the format option "slimjson" barefoot map matcher returns information about the used road, which can now set in relation to an OSM path (like it's done in #13)

Since I want to work with the online tracker, I wonder that there is no format option to get as well with the tracker the road information. Is there an option, to extend the output of the online tracker, which I just missed? In addition could it be possible to return directly the OSM ID, which would we be more usefull for post processing than the internal and variable barefoot gid?

Thanks in advance for your help. Cheers, Arne

argltuc avatar Sep 19 '17 13:09 argltuc

Since the tracker is meant to be used for larger numbers of vehicles, it transfers only a minimum of data, see MatcherKState#toMonitorJSON() in https://github.com/bmwcarit/barefoot/blob/master/src/main/java/com/bmwcarit/barefoot/matcher/MatcherKState.java You would need to customize this function to include data that you need.

smattheis avatar Sep 20 '17 14:09 smattheis

Alright, thanks for your advice. When I study your source code, to find out, how I can customize it at the best way, I found a function toOSMJSON which seems to be unused and undocumented. It seems to be really useful, since you can get directly the connection between your position and the OSM node/way ID. Why is this function not used as an additional matcher output function?

argltuc avatar Sep 26 '17 09:09 argltuc

I will check that out.

smattheis avatar Oct 02 '17 11:10 smattheis