The calculated distance (air line) between Bonn and Lohmar is approximately 9 miles respectively 14 kilometers.
By car or train, the actual journey to Lohmar is certainly longer, as only the direct route (as the crow flies) between Bonn and Lohmar has been calculated here.