ufix
v1.2.2
Published
Packing GPS fix in 16 chars text string
Downloads
2
Readme
Packing GPS fix in 16 chars text string
Why do I need it?
To save space when storing GPS locations or transporting them
Example
var ufix = require('ufix')
//pack
ufix({
latitude: 22.331443,
longitude: 114.1451929,
timestamp: 1445844471
})
// returns 16 chars string '/oFPDZksCUT31S1W'
//unpack
ufix('/oFPDZksCUT31S1W')
// returns location fix
/*
{
latitude: 22.331443,
longitude: 114.1451929,
timestamp: 1445844471
}
*/