New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

earth-radius-at-geodetic-latitude

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

earth-radius-at-geodetic-latitude - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

19

index.js

@@ -1,17 +0,3 @@

/**
* Estimate the Earth radius at given latitude.
*
* This function is based on the equation discussed on this GIS Stack Exchange thread:
* http://gis.stackexchange.com/questions/20200
* And this wikipedia entry on Geocentric Earth radius:
* http://en.wikipedia.org/wiki/Earth_radius#Geocentric_radius
*
* The equation:
* R = ( (a^2 cos(f))^2 + (b^2 sin(f))^2 ) / ( (a cos(f))^2 + (b sin(f))^2 )
* where `f` is the latitude and `a` and `b` are the
* equatorial radius and the polar radius, respectively.
*
* @param {Number} latitude The latitude.
* @return {Number} Radius in meters.
*/
'use strict';
function earthRadiusAtGeodeticLatitude(latitude) {

@@ -39,3 +25,2 @@ const r_major = 6378137;

module.exports = earthRadiusAtGeodeticLatitude;

2

package.json
{
"name": "earth-radius-at-geodetic-latitude",
"version": "1.0.0",
"version": "1.0.1",
"description": "Estimate the Earth radius at given latitude",

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

# earth-radius-at-geodetic-latitude
[![Build Status](https://travis-ci.org/dbrockman/earth-radius-at-geodetic-latitude.svg?branch=master)](https://travis-ci.org/dbrockman/earth-radius-at-geodetic-latitude)
[![Greenkeeper badge](https://badges.greenkeeper.io/dbrockman/earth-radius-at-geodetic-latitude.svg)](https://greenkeeper.io/)
> Estimate the Earth radius at given latitude

@@ -4,0 +7,0 @@

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