Skip to content

Latest commit

 

History

History
30 lines (19 loc) · 559 Bytes

README.md

File metadata and controls

30 lines (19 loc) · 559 Bytes

Geocrunch

Quick and simple geographic calcs

Usage

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

Path Options

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

Distance Options

units - meters, feet, miles. Default meters.

Area Options

units - sqmeters, sqmiles, acres. Default sqmeters.