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

Using lat/lng coordinates in lieu of GeoJSON format #57

Closed mesh-newbie closed 4 years ago

mesh-newbie commented 4 years ago

Hi, Your algorithm looks great :-), but was wondering if I could use it using traditional google maps lat/lng? Perhaps converting lat/lng to points.. would that work? https://developers.google.com/maps/documentation/javascript/reference/image-overlay#Projection.fromLatLngToPoint

Thanks

mourner commented 4 years ago

Yes. And then convert the result back to LatLng.