geocrunch

Quick and simple geographic calcs

Geocrunch

Quick and simple geographic calcs

path(arrayOfCoordPairs, options).distance(options); // returns distance 
path(arrayOfCoordPairs, options).area(options); // returns area 
path(arrayOfCoordPairs, options).center(); // returns center 

imBackwards - Path in format [lat, lng] vs expected [lng, lat]

units - meters, feet, miles. Default meters.

units - sqmeters, sqmiles, acres. Default sqmeters.