Jump to content

Template:Great circle distance/testcases

From Wikipedia, the free encyclopedia


Empty
{{Great circle distance}}

{{Great circle distance}}

0

{{Great circle distance/sandbox}}

0

Two points at 0 lat
{{Great circle distance|0|-151.1|0|123.393}}

{{Great circle distance}}

9,519

{{Great circle distance/sandbox}}

9,519

Two points at 35.4 lat
{{Great circle distance|35.4|-151.1|35.4|123.393}}

{{Great circle distance}}

7,472

{{Great circle distance/sandbox}}

7,472

Two points at 89 lat, precision=3
{{Great circle distance|89|-151.1|89|123.393|precision=3}}

{{Great circle distance}}

150.627

{{Great circle distance/sandbox}}

150.627

Two points centered on -36.7 lat
{{Great circle distance|-24.5|-151.1|-48.877|-123.393}}

{{Great circle distance}}

3,627

{{Great circle distance/sandbox}}

3,627

Two point, precision=-2
{{Great circle distance|-24.5|-151.1|-48.877|-123.393|precision=-2}}

{{Great circle distance}}

3,600

{{Great circle distance/sandbox}}

3,600

Two point, disp=
{{Great circle distance|-24.5|-151.1|-48.877|-123.393|disp=}}

{{Great circle distance}}

3,627 kilometres (3,627 km)

{{Great circle distance/sandbox}}

3,627 kilometres (3,627 km)

Two point, precision=-2, disp=
{{Great circle distance|-24.5|-151.1|-48.877|-123.393|disp= |precision=-2}}

{{Great circle distance}}

3,627 kilometres (3,600 km)

{{Great circle distance/sandbox}}

3,627 kilometres (3,600 km)

Two point, precision=2, disp=
{{Great circle distance|-24.5|-151.1|-48.877|-123.393|disp= |precision=2}}

{{Great circle distance}}

3,627.19 kilometres (3,627.19 km)

{{Great circle distance/sandbox}}

3,627.19 kilometres (3,627.19 km)

Two point, disp=flip
{{Great circle distance|-24.5|-151.1|-48.877|-123.393|disp=flip}}

{{Great circle distance}}

3,627 kilometres (3,627 km)

{{Great circle distance/sandbox}}

3,627 kilometres (3,627 km)

Jezero to Olympus Mons on Mars
{{Great circle distance|18.408|77.687|18.653|-133.803|3389.5|disp=flip |units=mi}}

{{Great circle distance}}

4,842 miles (7,793 km)

{{Great circle distance/sandbox}}

4,842 miles (7,793 km)