https://github.com/kevmo314/browser-geo-tz
A browser module to find the timezone based on gps coordinates
https://github.com/kevmo314/browser-geo-tz
datetime javascript timezone
Last synced: over 1 year ago
JSON representation
A browser module to find the timezone based on gps coordinates
- Host: GitHub
- URL: https://github.com/kevmo314/browser-geo-tz
- Owner: kevmo314
- License: mit
- Created: 2023-04-14T21:23:25.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2025-02-12T14:31:56.000Z (over 1 year ago)
- Last Synced: 2025-03-23T13:52:28.361Z (over 1 year ago)
- Topics: datetime, javascript, timezone
- Language: TypeScript
- Homepage: https://kevmo314.github.io/browser-geo-tz/
- Size: 159 KB
- Stars: 25
- Watchers: 2
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# browser-geo-tz
[](https://www.npmjs.com/package/browser-geo-tz)
This is a browser variant of [node-geo-tz](https://github.com/evansiroky/node-geo-tz). The original library says that the files are too big for the browser.
This library takes advantage of HTTP range requests to load the data quickly. Check out the [demo](https://kevmo314.github.io/browser-geo-tz/).
## Usage
### Unpkg
```html
console.log(await GeoTZ.find(37.3861, -122.0839));
```
### NPM
```bash
npm install browser-geo-tz
```
```javascript
import GeoTZ from "browser-geo-tz";
console.log(await GeoTZ.find(37.3861, -122.0839));
```