Accuracy
Distances verified against haversine ground truth at mid and high latitude — the Mercator scale correction done per axis.
Distances are verified against haversine ground truth at mid and high latitude:
- 0.11% error at San Francisco (37.77°N)
- 0.11% error at Oslo (59.91°N)
Why this required work
Web Mercator distances exceed ground distance by 1/cos(latitude) on both
axes. Two failure modes live in that sentence:
- Getting the sign wrong produces a 26% distance error at mid latitude that compounds toward the poles.
- A mean isotropic scale is wrong for a non-square bbox. The scale is applied per axis, so a wide bbox at 60°N does not inherit a scale chosen for its height.