geocrunch

0.1.1 • Public • Published

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.

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.1.1
    32
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.1.1
    32
  • 0.1.0
    1

Package Sidebar

Install

npm i geocrunch

Weekly Downloads

33

Version

0.1.1

License

none

Last publish

Collaborators

  • brandoncopeland