An open API service indexing awesome lists of open source software.

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

Awesome Lists containing this project

README

          

# browser-geo-tz

[![npm version](https://img.shields.io/npm/v/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));
```