TYPOC-47: first work on distance detection
TYPOC-47: first work on distance detection