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

meterstodegrees

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

meterstodegrees

Convert meters into degrees according to the latitude provided

  • 0.0.5
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Weekly downloads
 
Created
Source

metersTodegrees

Convert meters into degrees according to the latitude provided.

Calculates how many degrees are equivalent to a length in meters according to latitude.

$ npm install meterstodegrees

The calculations were based on here and here.

Usage

console.log(meterstodegrees.lonDegrees(<latitude>, <meters>))
console.log(meterstodegrees.latDegrees(<latitude>, <meters>))

Sample Usage

const meterstodegrees = require("meterstodegrees");

const meters = 1000;

console.log(meterstodegrees.lonDegrees(0, meters));
// 0.008983155487515939
// At latitude 0°, 1000 meters on longitude
// is equivalent to 0.008983155487515939 degrees.

console.log(meterstodegrees.lonDegrees(45, 1000));
// 0.012682821971791809
// At latitude 45°, 1000 meters on longitude
// is equivalent to 0.012682821971791809 degrees.

console.log(meterstodegrees.latDegrees(0, meters));
// 0.009043695025814083
// At latitude 0°, 1000 meters on latitude
// is equivalent to 0.009043695025814083 degrees.

console.log(meterstodegrees.latDegrees(45, 1000));
// 0.008998328965319496
// At latitude 45°, 1000 meters on latitude
// is equivalent to 0.008998328965319496 degrees.

Keywords

FAQs

Package last updated on 01 Jul 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

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