springmeyer / arc.js

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

generator.Arc() is not as described in README #19

Closed vincentbernat closed 2 years ago

vincentbernat commented 10 years ago

In README, it is said:

> line
{ properties: { name: 'Seattle to DC' },
  coords: 
   [ [ -122, 48.00000000000001 ],
     [ -112.06161978373486, 47.7241672604096 ],
     [ -102.38404317022653, 46.60813199882492 ],
     [ -93.22718895342909, 44.716217302635705 ],
     [ -84.74823988299501, 42.14415510795357 ],
     [ -77, 38.99999999999999 ] ],
  length: 6 }

This is not the case. There is a geometries object which is an array with one member which is an object containing cords and length properties as described above.

Dunno if the problem is in README or in the implementation.

tmcw commented 10 years ago

Indeed, http://mistakes.io/#860b5486e19704bcfbff

jgravois commented 2 years ago

fix proposed in #45. thank you both.