springmeyer / arc.js

great circle routes in javascript
http://springmeyer.github.io/arc.js/
BSD 2-Clause "Simplified" License
369 stars 70 forks source link

First and last points sometimes in wrong place #21

Closed ianwalberg closed 2 years ago

ianwalberg commented 9 years ago

Seen on a Galaxy Tab 2 using the android browser, chrome on same device and all other browsers tested on other platforms all okay. Below is a line from Washington to London to flight path, the line is from the aircraft position to London as it fly's along the great circle path.

More than 50% of the time all looks good and the points are correct.

Longitudes for a bad line :-

-45.90075610539107 -64.1077399463533 -62.775115272399255 -61.415123196700044 -60.02749558462086 -58.61204288779067 -57.168663375242126 -55.69735253809121 -54.19821252306159 -52.67146142295045 -51.1174422253593 -49.53663119602385 -47.92964545146531 -46.29724945923666 -44.64036019464593 -42.96005068239715 -41.257551661831606 -39.53425113678797 -37.79169160642204 -36.03156482183506 -34.255703974406906 -32.4660732937163 -30.66475511328782 -28.853934547652727 -27.035882010135403 -25.212933882695825 -23.38747172226428 -21.561900447766607 -19.738625994600138 -17.92003294585486 -16.108462650563627 -14.30619231863985 -12.515415541315736 -10.738224627543923 -8.976595074748827 -7.232372410997091 -5.507261559897495 -3.802818794048498 -2.1204462618961593 -23.826829224833478

jgravois commented 2 years ago

it has been ages since you opened this issue so i'm going to go ahead and close it.

if you're still interested in discussing, it would be helpful if you could provide a specific start and end coordinates that reliably result in incorrect output.