Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/alterebro/geotimestamp
Latitude, Longitude and Time Encoding
https://github.com/alterebro/geotimestamp
coordinates datetime encoder-decoder latitude longitude time
Last synced: about 2 months ago
JSON representation
Latitude, Longitude and Time Encoding
- Host: GitHub
- URL: https://github.com/alterebro/geotimestamp
- Owner: alterebro
- License: mit
- Created: 2022-04-25T18:46:58.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-12-27T18:31:31.000Z (about 2 years ago)
- Last Synced: 2024-09-14T22:48:03.826Z (4 months ago)
- Topics: coordinates, datetime, encoder-decoder, latitude, longitude, time
- Language: JavaScript
- Homepage: https://alterebro.github.io/geotimestamp/
- Size: 7.81 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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.
- **[Online encoder/decoder](https://codepen.io/alterebro/full/YzeKWGO)**
## Install
```html
```
## Use
```js
geotimestamp.encode( 36.6226298,-4.5015973, Date.parse("2022-04-23T19:22:12Z") )
// output: GJezYednAFrmZYEgeotimestamp.decode( 'N7YUlm7KWMxoZVL' )
// output: { lat: 45.19124, lng: 5.71463, timestamp: 1634746235000 }
```*MIT License, 2022 ( Jorge Moreno, __[@alterebro](https://twitter.com/alterebro)__ )*