Socket
Socket
Sign inDemoInstall

geodetic-to-ecef

Package Overview
Dependencies
2
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    geodetic-to-ecef

convert geodetic (lat,lon) coordinates to ecef (x,y,z)


Version published
Weekly downloads
24
decreased by-25%
Maintainers
1
Install size
59.9 kB
Created
Weekly downloads
 

Readme

Source

geodetic-to-ecef

convert geodetic coordinates ([lat,lon]) to ecef (cartesian [x,y,z])

build status

example

var ecef = require('geodetic-to-ecef');
var xyz = ecef(37.8043722, -122.2708026);
console.log(xyz);

output:

$ node ecef.js
[ -2694044.4111565403, -4266368.805493665, 3888310.602276871 ]

methods

var ecef = require('geodetic-to-ecef')

var xyz = ecef(lat, lon, elevation=0)

Return an array xyz of [x,y,z] coordinates in meters from lat and lon.

Optionally supply an elevation in meters.

usage

This package ships with a command-line tool.

geodetic-to-ecef LAT LON
geodetic-to-ecef LAT LON ELEV

  Print the ECEF (X Y Z) coordinates for LAT LON
  and optionally an elevation ELEV in meters (default: 0).

example output:

$ geodetic-to-ecef -36.867 174.767
-5087568.564323121 465959.663344287 -3805595.1124150762

install

To get the library:

npm install geodetic-to-ecef

To get the command-line tool:

npm install -g geodetic-to-ecef

license

MIT

Keywords

FAQs

Last updated on 05 Nov 2015

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc