earthRadius top-level constant

double const earthRadius

Implementation

const earthRadius = 6371e3;