Calculate distance between labeled object and map label


I have read the map tutorial in your webpage and I was wondering if you have an implemented method to obtain the minimum distance from a labeled object (e.g. pedestrian) to a map label (e.g. road).

Thank you.

Hi. At the moment we don’t have any query methods for distance. It shouldn’t be very difficult though if you follow the provided code examples. If you only want to check whether a ped is within x meters of road it may be faster to use a binary map and dilate it by the equivalent of x meters. Then the lookup is in O(1).
If you come up with a general way to do it, feel free to create a PR.

All right, thanks for the suggestions!