beatgammit / node-coordinator Goto Github PK
View Code? Open in Web Editor NEWConverts between GPS coordinate systems
License: Other
Converts between GPS coordinate systems
License: Other
I've used this library in the past, it works great! However I seem to only get undefined
when I try to do require('coordinator')
.
Tried on Ubuntu with Node 6
$ node -v
v6.9.1
$ npm install coordinator
[email protected] /root/test
└── [email protected]
$ node
> require('coordinator')
undefined
>
Tried on MacOSX with Node 7
$ node -v
v7.1.0
$ npm install coordinator
[email protected] /Users/mac/Github/test
└── [email protected]
$ node
> require('coordinator')
undefined
>
Using lat 89.0009 and long 179.0009, nothing comes back. I haven't investigated much further than this.
Sorry this is mistakenly open issue.
Sometimes the northing is off. The easting looks fine, but the northing is off by 10 meters on the Machu Picchu test.
It may have something to do with rounding in the constants. Can't be sure though.
If you are using ES6 modules, coordinator will not import
node-coordinator/coordinator.js
Line 5 in 32e3a86
The line above will always return null (factory() passes in a null converter which is then returned)
Hello,
I have a PR on an downstream library that's waiting for 0.5.0
specifically to avoid mentions of pakmanager
. Could you release 0.5.0
to npm?
Thanks!
Hi Gents,
I'm a newbie and also French.....sorry (also I take medecine)
I downloaded your codes (thanks for your work).
I installed them in "my documents" directory and from my IE11 I launch :
" file:///C:/User......cuments/node-coordinator-master/examples/index.html "
The web page opened so I tried to input some LAT LON and clicked on the knob.
And nothing happened.
So, please let me know the proper format for LAT and LON (N12°34'45 or something different?)
I also put MGRS value 31UDP9876554321.
Once again, by pressing the knob, nothing happened.
Please let me know which kind of mistake I did.
Many thanks
MTZ
It seems the error is in the USNG->UTM conversion. The latitude seems correct, but the longitude gets off (or the other way around, one of the two).
The UTM Zone letter designator can be two different formats. One is the latitude band designator (which is implemented in this library). The other is the hemispheric designator, an N (north) or S (south). Both are valid UTM and both are in present use. When converting to UTM, it would be helpful to be able to choose which method to use.
Example.
Latitude: 46.475823
Longitude: -14.250822
UTM (with latitude band): 28T 557511mE 5147189mN
UTM (with hemisphere): 28N 557511mE 5147189mN
Both conversions can be calculated here: http://www.rcn.montana.edu/resources/converter.aspx
https://en.wikipedia.org/wiki/Universal_Transverse_Mercator_coordinate_system#Notation
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.