Skip to content

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

License

Notifications You must be signed in to change notification settings

ios-user01/geodetic-to-ecef

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

install

With npm do:

npm install geodetic-to-ecef

license

MIT

About

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

Resources

License

Stars

Watchers

Forks

Packages

No packages published