0.3.7 • Published 2 years ago

js-geo-web-coordinate v0.3.7

Weekly downloads
2
License
MIT
Repository
-
Last release
2 years ago

js-geo-web-coordinate

A Javascript implementation of converting GeoWebCoordinate to GPS coordinates. See the spec.

Install

npm install js-geo-web-coordinate

Usage

Convert GPS -> Geo Web Coordinate

const GeoWebCoordinate = require("js-geo-web-coordinate");

let lon = 110.0;
let lat = 38.0;

let gwCoord = GeoWebCoordinate.from_gps(lon, lat);

Convert Geo Web Coordinate -> GPS Bounding Box

const GeoWebCoordinate = require("js-geo-web-coordinate");

let gpsCoords = GeoWebCoordinate.to_gps(gwCoord);

Note: Calculating bounding boxes will round results to the nearest 10 digits. This may result in small rounding errors when calculating bounding boxes of a coordinate.

Tests

See tests for more usage.

npm test
0.3.0

2 years ago

0.3.6

2 years ago

0.3.5

2 years ago

0.3.7

2 years ago

0.3.2

2 years ago

0.3.1

2 years ago

0.3.4

2 years ago

0.3.3

2 years ago

0.2.0

3 years ago

0.1.2

3 years ago

0.1.1

4 years ago

0.1.0

4 years ago