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

geolib

Package Overview
Dependencies
Maintainers
1
Versions
34
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

geolib - npm Package Compare versions

Comparing version 2.0.22 to 2.0.23

dist/geolib.d.ts

25

package.json

@@ -13,15 +13,16 @@ {

"devDependencies": {
"eslint-config-wiremore": "^1.0.3",
"grunt": "~0.4",
"grunt-cli": "*",
"grunt-contrib-uglify": "~0.2",
"grunt-contrib-clean": "~0.5.0",
"grunt-contrib-concat": "~0.3",
"grunt-contrib-clean": "~0.5.0",
"grunt-contrib-copy": "~0.4",
"grunt-contrib-jshint": "~0.6.2",
"grunt-contrib-qunit": "~0.2.0",
"grunt-contrib-uglify": "~0.2",
"grunt-jslint": "~1.0.0",
"grunt-text-replace": "~0.3.6",
"grunt-contrib-jshint": "~0.6.2",
"load-grunt-tasks": "~0.4.0",
"phantomjs": ">=1.8.0",
"grunt-jslint": "~1.0.0",
"time-grunt": "~0.3.1",
"load-grunt-tasks": "~0.4.0"
"time-grunt": "~0.3.1"
},

@@ -35,2 +36,3 @@ "licenses": [

"files": [
"dist/geolib.d.ts",
"dist/geolib.js",

@@ -41,2 +43,7 @@ "dist/geolib.elevation.js"

"keywords": [
"geodesy",
"distance",
"latitude",
"longitude",
"elevation",
"geolocation",

@@ -51,6 +58,8 @@ "geo",

"scripts": {
"test": "grunt travis --verbose"
"test": "grunt travis --verbose",
"build": "grunt build"
},
"version": "2.0.22",
"version": "2.0.23",
"typings": "dist/geolib.d.ts",
"main": "dist/geolib.js"
}

@@ -1,2 +0,2 @@

# Geolib v2.0.21
# Geolib
[![Build Status](https://secure.travis-ci.org/manuelbieh/Geolib.png?branch=master)](http://travis-ci.org/manuelbieh/Geolib)

@@ -8,2 +8,6 @@

## Install
npm install geolib
<h2>Methods</h2>

@@ -15,3 +19,3 @@

Takes 2 or 4 arguments. First 2 arguments must be objects that each have latitude and longitude properties (e.g. `{latitude: 52.518611, longitude: 13.408056}`)Works with:. Coordinates can be in sexagesimal or decimal format. 3rd argument is accuracy (in meters). So a calculated distaWorks with:nce of 1248 meters with an accuracy of 100 is returned as `1200` (accuracy 10 = `1250` etc.). 4th argument is precision in sub-meters (1 is meter presicion, 2 is decimeters, 3 is centimeters, etc).
Takes 2 or 4 arguments. First 2 arguments must be objects that each have latitude and longitude properties (e.g. `{latitude: 52.518611, longitude: 13.408056}`). Coordinates can be in sexagesimal or decimal format. 3rd argument is accuracy (in meters). So a calculated distance of 1248 meters with an accuracy of 100 is returned as `1200` (accuracy 10 = `1250` etc.). 4th argument is precision in sub-meters (1 is meter presicion, 2 is decimeters, 3 is centimeters, etc).

@@ -377,3 +381,3 @@ Return value is always float and represents the distance in meters.

Computes the destination point given an initial point, a distance and a bearing
Computes the destination point given an initial point, a distance (in meters) and a bearing (in degrees).

@@ -380,0 +384,0 @@ If no radius is given it defaults to the mean earth radius of 6371000 meter.

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