wire up distance calculation using service