geotimestamp

1.1.1 • Public • Published

geotimestamp

Latitude, Longitude and Time Encoding

Encode a geographic point location coordinates (latitude, longitude) along with a datetime value into a 15-chars short url-safe Base62 text string of letters and digits.

Install

<!-- npm i geotimestamp -->
<script src="https://unpkg.com/geotimestamp"></script>

Use

geotimestamp.encode( 36.6226298,-4.5015973, Date.parse("2022-04-23T19:22:12Z") )
// output: GJezYednAFrmZYE

geotimestamp.decode( 'N7YUlm7KWMxoZVL' )
// output: { lat: 45.19124, lng: 5.71463, timestamp: 1634746235000 }

MIT License, 2022 ( Jorge Moreno, @alterebro )

Package Sidebar

Install

npm i geotimestamp

Weekly Downloads

2

Version

1.1.1

License

MIT

Unpacked Size

8.91 kB

Total Files

5

Last publish

Collaborators

  • alterebro