Initial commit

This commit is contained in:
robert committed 2025-05-30 18:13:30 +08:00
commit e49726988c
5445 files changed
+1089914

No files matched your search

+116
View File
@@ -0,0 +1,116 @@
CC0 1.0 Universal
Statement of Purpose
The laws of most jurisdictions throughout the world automatically confer
exclusive Copyright and Related Rights (defined below) upon the creator and
subsequent owner(s) (each and all, an "owner") of an original work of
authorship and/or a database (each, a "Work").
Certain owners wish to permanently relinquish those rights to a Work for the
purpose of contributing to a commons of creative, cultural and scientific
works ("Commons") that the public can reliably and without fear of later
claims of infringement build upon, modify, incorporate in other works, reuse
and redistribute as freely as possible in any form whatsoever and for any
purposes, including without limitation commercial purposes. These owners may
contribute to the Commons to promote the ideal of a free culture and the
further production of creative, cultural and scientific works, or to gain
reputation or greater distribution for their Work in part through the use and
efforts of others.
For these and/or other purposes and motivations, and without any expectation
of additional consideration or compensation, the person associating CC0 with a
Work (the "Affirmer"), to the extent that he or she is an owner of Copyright
and Related Rights in the Work, voluntarily elects to apply CC0 to the Work
and publicly distribute the Work under its terms, with knowledge of his or her
Copyright and Related Rights in the Work and the meaning and intended legal
effect of CC0 on those rights.
1. Copyright and Related Rights. A Work made available under CC0 may be
protected by copyright and related or neighboring rights ("Copyright and
Related Rights"). Copyright and Related Rights include, but are not limited
to, the following:
i. the right to reproduce, adapt, distribute, perform, display, communicate,
and translate a Work;
ii. moral rights retained by the original author(s) and/or performer(s);
iii. publicity and privacy rights pertaining to a person's image or likeness
depicted in a Work;
iv. rights protecting against unfair competition in regards to a Work,
subject to the limitations in paragraph 4(a), below;
v. rights protecting the extraction, dissemination, use and reuse of data in
a Work;
vi. database rights (such as those arising under Directive 96/9/EC of the
European Parliament and of the Council of 11 March 1996 on the legal
protection of databases, and under any national implementation thereof,
including any amended or successor version of such directive); and
vii. other similar, equivalent or corresponding rights throughout the world
based on applicable law or treaty, and any national implementations thereof.
2. Waiver. To the greatest extent permitted by, but not in contravention of,
applicable law, Affirmer hereby overtly, fully, permanently, irrevocably and
unconditionally waives, abandons, and surrenders all of Affirmer's Copyright
and Related Rights and associated claims and causes of action, whether now
known or unknown (including existing as well as future claims and causes of
action), in the Work (i) in all territories worldwide, (ii) for the maximum
duration provided by applicable law or treaty (including future time
extensions), (iii) in any current or future medium and for any number of
copies, and (iv) for any purpose whatsoever, including without limitation
commercial, advertising or promotional purposes (the "Waiver"). Affirmer makes
the Waiver for the benefit of each member of the public at large and to the
detriment of Affirmer's heirs and successors, fully intending that such Waiver
shall not be subject to revocation, rescission, cancellation, termination, or
any other legal or equitable action to disrupt the quiet enjoyment of the Work
by the public as contemplated by Affirmer's express Statement of Purpose.
3. Public License Fallback. Should any part of the Waiver for any reason be
judged legally invalid or ineffective under applicable law, then the Waiver
shall be preserved to the maximum extent permitted taking into account
Affirmer's express Statement of Purpose. In addition, to the extent the Waiver
is so judged Affirmer hereby grants to each affected person a royalty-free,
non transferable, non sublicensable, non exclusive, irrevocable and
unconditional license to exercise Affirmer's Copyright and Related Rights in
the Work (i) in all territories worldwide, (ii) for the maximum duration
provided by applicable law or treaty (including future time extensions), (iii)
in any current or future medium and for any number of copies, and (iv) for any
purpose whatsoever, including without limitation commercial, advertising or
promotional purposes (the "License"). The License shall be deemed effective as
of the date CC0 was applied by Affirmer to the Work. Should any part of the
License for any reason be judged legally invalid or ineffective under
applicable law, such partial invalidity or ineffectiveness shall not
invalidate the remainder of the License, and in such case Affirmer hereby
affirms that he or she will not (i) exercise any of his or her remaining
Copyright and Related Rights in the Work or (ii) assert any associated claims
and causes of action with respect to the Work, in either case contrary to
Affirmer's express Statement of Purpose.
4. Limitations and Disclaimers.
a. No trademark or patent rights held by Affirmer are waived, abandoned,
surrendered, licensed or otherwise affected by this document.
b. Affirmer offers the Work as-is and makes no representations or warranties
of any kind concerning the Work, express, implied, statutory or otherwise,
including without limitation warranties of title, merchantability, fitness
for a particular purpose, non infringement, or the absence of latent or
other defects, accuracy, or the present or absence of errors, whether or not
discoverable, all to the greatest extent permissible under applicable law.
c. Affirmer disclaims responsibility for clearing rights of other persons
that may apply to the Work or any use thereof, including without limitation
any person's Copyright and Related Rights in the Work. Further, Affirmer
disclaims responsibility for obtaining any necessary consents, permissions
or other rights required for any use of the Work.
d. Affirmer understands and acknowledges that Creative Commons is not a
party to this document and has no duty or obligation with respect to this
CC0 or use of the Work.
For more information, please see
<http://creativecommons.org/publicdomain/zero/1.0/>
+162
View File
@@ -0,0 +1,162 @@
# @photostructure/tz-lookup
[![npm version](https://img.shields.io/npm/v/@photostructure/tz-lookup.svg)](https://www.npmjs.com/package/@photostructure/tz-lookup)
[![Build status](https://github.com/photostructure/tz-lookup/actions/workflows/node.js.yml/badge.svg?branch=main)](https://github.com/photostructure/tz-lookup/actions/workflows/node.js.yml)
[![GitHub issues](https://img.shields.io/github/issues/photostructure/tz-lookup.svg)](https://github.com/photostructure/tz-lookup/issues)
Fast, memory-efficient time zone estimations from latitude and longitude.
## Background
This is a fork of [darkskyapp/tz-lookup](https://github.com/darkskyapp/tz-lookup-oss) which was abandoned in 2020. Ongoing maintenance is supported by [PhotoStructure](https://photostructure.com).
The following updates have been made to this fork:
- The time zone database uses
[2025b](https://github.com/evansiroky/timezone-boundary-builder/releases/tag/2025b). Expect a bunch of changes if you're upgrading from the original `tz-lookup`, including new zone names and shapes.
- TypeScript types are now included.
- The test suite now validates the result from this library with the more accurate library, [`geo-tz`](https://github.com/evansiroky/node-geo-tz/), and provides benchmark timing results.
- GitHub Actions now runs the test suite.
## Caution! This package trades speed and size for accuracy.
**TL;DR: if accuracy is important for your application and you don't need to support browsers, use `geo-tz`.**
The following comparisons were taken in January 2024 with the latest versions of Node.js, this package, and geo-tz.
### Size
This package is 10x smaller than
[geo-tz](https://github.com/evansiroky/node-geo-tz/):
([72kb](https://bundlephobia.com/package/@photostructure/tz-lookup@9.0.0) vs
[892kb](https://bundlephobia.com/package/geo-tz@8.0.1)).
### Speed
This package is roughly 100x faster than `geo-tz`, as well. On an AMD 5950x (a fast desktop CPU from 2023) and Node.js v20:
- this package takes **~.05 milliseconds** per lookup, and
- `geo-tz` takes **~5 milliseconds** per lookup.
### Accuracy
If you take a random point on the earth, roughly 30% of the results from this package won't match the (accurate) result from `geo-tz`.
This drops to roughly 10% if you only pick points that are likely [inhabited](https://github.com/darkskyapp/inhabited).
This error rate drops to roughly 5% if you consider time zones (like `Europe/Vienna` and `Europe/Berlin`) that result in equivalent time zone offset values throughout the year.
Here's a sample of some errors from this page for some random locations from running the test suite. The first mentioned IANA timezone is from this package, and the second (probably more correct) IANA timezone is from `geo-tz`.
```json
[
{
"lat": "24.881",
"lon": "59.984",
"error": "expected Asia/Tehran(210) to have the same standard-time offset as Etc/GMT-4(240)"
},
{
"lat": "46.345",
"lon": "48.766",
"error": "expected Asia/Atyrau(300) to have the same standard-time offset as Europe/Astrakhan(240)"
},
{
"lat": "59.275",
"lon": "134.481",
"error": "expected Asia/Vladivostok(600) to have the same standard-time offset as Asia/Khandyga(540)"
},
{
"lat": "20.645",
"lon": "100.190",
"error": "expected Asia/Yangon(390) to have the same standard-time offset as Asia/Jakarta(420)"
},
{
"lat": "38.012",
"lon": "0.082",
"error": "expected Europe/Madrid(60) to have the same standard-time offset as Etc/GMT(0)"
},
{
"lat": "-22.364",
"lon": "-57.449",
"error": "expected America/Campo_Grande(-240) to have the same standard-time offset as America/Asuncion(-180)"
},
{
"lat": "39.018",
"lon": "-73.842",
"error": "expected America/New_York(-240) to have the same daylight-savings-time offset as Etc/GMT+5(-300)"
},
{
"lat": "28.427",
"lon": "-95.793",
"error": "expected America/Chicago(-300) to have the same daylight-savings-time offset as Etc/GMT+6(-360)"
}
]
```
## Usage
To install:
npm install @photostructure/tz-lookup
Node.JS usage:
```javascript
var tzlookup = require("@photostructure/tz-lookup");
console.log(tzlookup(42.7235, -73.6931)); // prints "America/New_York"
```
Browser usage:
```html
<script src="tz.js"></script>
<script>
alert(tzlookup(42.7235, -73.6931)); // alerts "America/New_York"
</script>
```
**Please take note of the following:**
- The exported function call will throw an error if the latitude or longitude
provided are NaN or out of bounds. Otherwise, it will never throw an error
and will always return an IANA timezone database string. (Barring bugs.)
- The timezones returned by this module are approximate: since the timezone
database is so large, lossy compression is necessary for a small footprint
and fast lookups. Expect errors near timezone borders far away from
populated areas. However, for most use-cases, this module's accuracy should
be adequate.
If you find a real-world case where this module's accuracy is inadequate,
please open an issue (or, better yet, submit a pull request with a failing
test) and I'll see what I can do to increase the accuracy for you.
## Sources
Timezone data is sourced from Evan Siroky's [timezone-boundary-builder][tbb].
The database was last updated on 30 December 2023 to use the 2023d dataset.
To regenerate the library's database yourself, you will need to install GDAL:
```sh
$ brew install gdal # on Mac OS X
$ sudo apt install gdal-bin # on Ubuntu
```
Then, simply execute `rebuild.sh`. Expect it to take 10-30 minutes, depending
on your network connection and CPU.
[tbb]: https://github.com/evansiroky/timezone-boundary-builder/
## License
To the extent possible by law, The Dark Sky Company, LLC has [waived all
copyright and related or neighboring rights][cc0] to this library.
[cc0]: http://creativecommons.org/publicdomain/zero/1.0/
Any subsequent changes since the fork are also licensed via cc0.
+8
View File
@@ -0,0 +1,8 @@
/**
* Look up the timezone for a given latitude and longitude.
*
* @throws {Error} if the latitude or longitude are invalid
*/
declare function tz_lookup(latitude: number, longitude: number): string;
export = tz_lookup;
+41
View File
@@ -0,0 +1,41 @@
{
"author": {
"email": "tzlookup@photostructure.com",
"name": "PhotoStructure, Inc."
},
"description": "fast time zone lookup",
"devDependencies": {
"geo-tz": "^8.1.4",
"inhabited": "^2.0.3",
"luxon": "^3.5.0",
"mocha": "^11.1.0",
"prettier": "^3.4.2",
"uglify-js": "^3.19.3"
},
"keywords": [
"tz",
"timezone",
"time zone"
],
"license": "CC0-1.0",
"main": "tz.js",
"name": "@photostructure/tz-lookup",
"publishConfig": {
"access": "public"
},
"release-it": {
"github": {
"release": true
}
},
"repository": {
"type": "git",
"url": "git://github.com:photostructure/tz-lookup.git"
},
"types": "index.d.ts",
"scripts": {
"test": "mocha",
"prettier": "prettier --write test.js tz_template.js pack.js"
},
"version": "11.2.0"
}
+1
View File
@@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