mapbox / polylabel

A fast algorithm for finding the pole of inaccessibility of a polygon (in JavaScript and C++)
Other
1.44k stars 151 forks source link

Can i use this libary with polylines ? #89

Closed mohammedX6 closed 3 years ago

mourner commented 3 years ago

No. An algorithm for polylines is much simpler — you just calculate the total length, and then find a point exactly halfway.