An apparatus comprising a hand-portable electronic device including a detection-and-ranging element configured to provide spatial information of one or more physical objects in a space around the hand-held portable electronic device for collision avoidance, the detection-and-ranging element configured to transmit one or more electromagnetic, wireless detection signals and configured to detect one or more reflections of said one or more electromagnetic, wireless detection signals from the one or more objects.