bmwcarit / barefoot

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
664 stars 185 forks source link

Proximity of road segments ids after map-matching #137

Open gevago01 opened 5 years ago

gevago01 commented 5 years ago

Is there any way to preserve proximity between road segments in the transform space? For example, spatially close road segments can be assigned distant road segment ids. And similarly, two segments with ids 1 and 2, for example, could be spatially apart.

smattheis commented 5 years ago

This requires an extension of the already assigned unique road segment identifier (let's call it the UID) in such a way that the new id is then a tuple that consists of a geo-hash (e.g. taking the road's centroid) and the previous UID.

May I ask what is your intension to reflect the spatial proximity of road segments with the ids?

gevago01 commented 4 years ago

The purpose is to partition trajectories by id so that a partition contains trajectories starting from neighboring segments.

I will try your suggestion, it sounds reasonable. Thank you