Cheap Ruler Versions Save

Fast approximations for common geodesic measurements 🌐

v3.0.1

3 years ago

Minor fixes to the list of published files for v3.

v3.0.0

3 years ago
  • Breaking: changed the API from cheapRuler(...) to new CheapRuler(...) (more idiomatic for ES).
  • Switched to ES and exposed as a ES module. CommonJS/browser builds remain ES5-compatible.
  • Added pointToSegmentDistance(p, a, b) method.
  • Fixed all methods to work across the date line.
  • Breaking: switched from FCC formulas (based on Clarke ellipsoid) to a more modern WGS84 Ellipsoid model of the Earth, so the values calculated may change slightly.

v2.5.1

6 years ago
  • Fixed and documented pointOnLine t result property #30
  • Added default export for use with ES modules setups
  • Added minified build to the package
  • Added offset method to TypeScript typings

v2.5.0

7 years ago
  • Added ruler.offset(point, dx, dy) method.
  • Added TypeScript definition.

v2.4.1

8 years ago
  • 5x faster ruler creation #15

v2.4.0

8 years ago
  • Exposed unit conversion constants in cheapRuler.units.
  • Improved error handling for invalid units.

v2.3.0

8 years ago
  • Fixed broken conversion to miles.
  • Added more units: meters, yards, feet, inches, nauticalmiles.
  • Added flow types.

v2.2.0

8 years ago

Made all methods much more precise by using an FCC-approved formula for ellipsoidal Earth projection. #13

v2.1.0

8 years ago

Added ruler.lineSliceAlong.

v2.0.0

8 years ago
  • Added ruler.lineSlice
  • Added ruler.destination
  • breaking: Changed ruler.pointOnLine return value from point to object {point, index, t}