You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 14, 2018. It is now read-only.
This lib does not consider that the earth is a sphere, I should deprecate it. You should use @turf/center instead:
npm i --save @turf/turf
constturf=require('@turf/turf')constpoint1=[-97.522259,35.4691]constpoint2=[10.502754,31.463455]constpoint3=[45.502754,-24.463455]constcenter=turf.center(turf.featureCollection([turf.point(point1),turf.point(point2),turf.point(point3)// even more points])
Hope this helps, feel free to ask again if something's unclear 🙂
What I like about geographic-centre is a) the straightforward name and b) the ease of use.
@juliuste What do you think about adapting geographic-center to used @turf/center under the hood? It could do generate the FeatureCollection and Points and pass them on?
Or is there a fasts and/or more direct implementation that accepts bare latitude/longitude pairs?
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Why is max distance 200km? How could I make this calculation for more than that?
The text was updated successfully, but these errors were encountered: