Skip to content

afanasy/ufix

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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
}
*/

About

Packing GPS fix in 16 chars text string

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published