使用例
One degree along the equator
One degree along the equator. The input is a small public learning fixture; it contains no private production data.
入力
0, 0, 0, 1Expected answer
Tolerance ±1.1119492664455874e-7111194.92664455874Quarter of the equator
Quarter of the equator. The input is a small public learning fixture; it contains no private production data.
入力
0, 0, 0, 90Expected answer
Tolerance ±0.00001000754339801028310007543.398010284Pole to pole
Pole to pole. The input is a small public learning fixture; it contains no private production data.
入力
90, 0, -90, 0Expected answer
Tolerance ±0.0000200150867960205720015086.79602057A zero-distance control
A zero-distance control. The input is a small public learning fixture; it contains no private production data.
入力
51.5, -0.1, 51.5, -0.1Expected answer
Tolerance ±1e-120Cross the date line
Cross the date line. The input is a small public learning fixture; it contains no private production data.
入力
0, 179.5, 0, -179.5Expected answer
Tolerance ±1.1119492664455905e-7111194.92664455905Haversine distance
入力
51.487263,-0.124323, 38.9517,-77.1467Expected answer
JSON5902542.836307819Haversine distance, zero distance
入力
51.487263,-0.124323, 51.487263,-0.124323Expected answer
JSON0