map-common-utils

0.5.0 • Public • Published

map-common-utils NPM version

Map common utils

Installation

$ npm install --save map-common-utils

Usage

Given center {lat, lon} and x, y size in kilometers create a polygon of a real-earth rectangle.

const mapCommonUtils = require('map-common-utils');
 
const square = mapCommonUtils.rectangleAround({lat: 53.5775, lon: 3.106111}, 0.5, 1);

Given center {lat, lon} and size in kilometers create a polygon of a real-earth square.

const mapCommonUtils = require('map-common-utils');
 
const square = mapCommonUtils.squareAround({lat: 53.5775, lon: 3.106111}, 1);

Also, union of square/circle objects (see doc folder).

This package was generated with yeoman generator-node.

License

AGPL-3.0 © Comunes Association

Readme

Keywords

Package Sidebar

Install

npm i map-common-utils

Weekly Downloads

2

Version

0.5.0

License

AGPL-3.0

Unpacked Size

43.9 kB

Total Files

5

Last publish

Collaborators

  • vjrj