Build Status codecov npm version downloads

:globe_with_meridians: Geometry


yarn add @sudoo/geometry
# Or
npm install @sudoo/geometry --save


This package normally used with other sudoo packages. See SudoDotDog for the complete package index.

import { Coordinate } from "@sudoo/geometry";
const coordinate: Coordinate = {
    latitude: // number
    longitude: // number

Some utility methods are included, for example, random location generation.

import { Coordinate, randomGarbleCoordinate } from "@sudoo/geometry";
const original: Coordinate = {
    latitude: // number
    longitude: // number
const coordinate: Coordinate = randomGarbleCoordinate(original, 0.5);

This document is working in progress, see source code for more usage information.