Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

geoutil

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

geoutil - npm Package Compare versions

Comparing version 1.1.0 to 1.1.1

8

lib/index.js

@@ -6,6 +6,2 @@ // Generated by CoffeeScript 1.8.0

exports.rad = Math.PI / 180;
exports.deg = 180 / Math.PI;
exports.pointDistance = function(p1, p2) {

@@ -50,1 +46,5 @@ var a, c, Δλ, Δφ, φ1, φ2;

};
exports.rad = Math.PI / 180;
exports.deg = 180 / Math.PI;
{
"name": "geoutil",
"version": "1.1.0",
"version": "1.1.1",
"description": "Geographic formulas and geospatial transformations",

@@ -5,0 +5,0 @@ "main": "lib/index.js",

@@ -16,2 +16,4 @@ Geoutil for Node.JS [![Build Status](https://drone.io/github.com/Turistforeningen/node-geoutil/status.png)](https://drone.io/github.com/Turistforeningen/node-geoutil/latest)

Get the distance in `meters` between two points. [Technical details](https://github.com/Turistforeningen/node-geoutil/blob/master/src/index.litcoffee#pointdistance)
```javascript

@@ -27,2 +29,4 @@ var pointA = [ 60.39826, 5.32907 ];

Get total distance in `meters` for polyline. [Technical details](https://github.com/Turistforeningen/node-geoutil/blob/master/src/index.litcoffee#linedistance)
```javascript

@@ -43,2 +47,4 @@ var line = [

Get total area in `meters`^2 for polygon. [Technical details](https://github.com/Turistforeningen/node-geoutil/blob/master/src/index.litcoffee#polygonarea)
```javascript

@@ -53,6 +59,8 @@ var polygon = [[

]];
geoutil.polygonArea(poly);
// 40.43198051882604
```
## [MIT License](https://raw.githubusercontent.com/Turistforeningen/node-geoutil/master/LICENSE)
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc