0.3.7 • Published 3 years ago

js-geo-web-coordinate v0.3.7

Weekly downloads
2
License
MIT
Repository
-
Last release
3 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

3 years ago

0.3.6

3 years ago

0.3.5

3 years ago

0.3.7

3 years ago

0.3.2

3 years ago

0.3.1

3 years ago

0.3.4

3 years ago

0.3.3

3 years ago

0.2.0

5 years ago

0.1.2

5 years ago

0.1.1

5 years ago

0.1.0

5 years ago