Text this: Electromagnetic distance measurement