See #22115 (dist): Extract methods from LatLon into ILatLon where they are generally applicable
This uses the extracted methods where possible, and removes unnecessary Node#getCoor calls.