@hebcal/geo-sqlite 5.7.0 → 5.7.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cities-patch.txt +5 -0
- package/dist/index.js +14 -5
- package/package.json +2 -2
package/cities-patch.txt
CHANGED
|
@@ -338,3 +338,8 @@
|
|
|
338
338
|
12156452 Beit Aryeh-Ofarim Beit Aryeh-Ofarim 32.03742 35.05004 P PPL PS WE 5139 186 Asia/Hebron 2020-04-22
|
|
339
339
|
295530 Beer Sheva Beer Sheva x 31.25181 34.7913 P PPLA IL 01 186600 285 Asia/Jerusalem 3/15/19
|
|
340
340
|
12042098 Salt Spring Island Salt Spring Island Salt Spring Island 48.81852 -123.49061 T ISL CA 02 5917 0 205 America/Vancouver 2025-06-09
|
|
341
|
+
2803870 Zossen Zossen Cosen,Cossen,Sosny,Zossen,cuo sen,swzh,Цосен,Цоссен,Ցոսեն,سوزه,措森 52.216 13.44909 P PPLA4 DE 11 00 12072 12072477 17138 41 Europe/Berlin 2024-11-15
|
|
342
|
+
2814279 Wangen Wangen Vangen,Wangen bei Goeppingen,Wangen bei Göppingen,Ванген 48.72933 9.61175 P PPLA4 DE 01 081 08117 08117055 3209 382 Europe/Berlin 2011-07-31
|
|
343
|
+
2821164 Trier Trier Augusta Treverorum,Treier,Trevere,Treveri,Treveris,Treves,Trevir,Treviri,Treviro,Trevèri,Trevír,Trewir,Trier,Trir,Trire,Triri,Tryr,Tryras,Trèveris,Trèves,Tréier,Tréveris,Trīre,ZQF,te li er,teulieo,the riyr,toria,tryr,Τρηρ,Трир,Трыр,Трір,טריר,ترير,ترییر,ٹریر,เทรียร์,ტრირი,ትሪር,トリーア,特里尔,트리어 49.75565 6.63935 P PPLA4 DE 08 00 07211 07211000 100129 141 Europe/Berlin 2024-08-26
|
|
344
|
+
2850174 Ratingen Ratingen Ratingen,ZPJ,la ting gen,lating-en,ratlyngn,Ратинген,راتلینگن,拉廷根,라팅엔 51.29724 6.84929 P PPLA4 DE 07 051 05158 05158028 91606 64 Europe/Berlin 2024-11-15
|
|
345
|
+
2949186 Bielefeld Bielefeld BFE,Bielefeld,Bilefel'd,Bilefeld,Bilefelde,Bilifeld,Bilivelda,Builefeld,Bylefeldas,Bīlefelde,Bīlifeld,Mpilephelnt,bi lei fei er de,bilephelda,bilepildi,billepelteu,bireferuto,bylyfyld,Μπίλεφελντ,Билефелд,Билефельд,Білефельд,بيليفيلد,بیلفیلڈ,بیلهفلد,बीलेफेल्ड,ბილეფილდი,ビーレフェルト,比勒费尔德,빌레펠트 52.03333 8.53333 P PPLA4 DE 07 057 05711 05711000 331906 111 Europe/Berlin 2019-09-05
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @hebcal/geo-sqlite v5.7.
|
|
1
|
+
/*! @hebcal/geo-sqlite v5.7.2 */
|
|
2
2
|
import Database from 'better-sqlite3';
|
|
3
3
|
import QuickLRU from 'quick-lru';
|
|
4
4
|
import { Location, Locale } from '@hebcal/core';
|
|
@@ -511,7 +511,7 @@ function munge(s) {
|
|
|
511
511
|
}
|
|
512
512
|
|
|
513
513
|
// DO NOT EDIT THIS AUTO-GENERATED FILE!
|
|
514
|
-
const version = '5.7.
|
|
514
|
+
const version = '5.7.2';
|
|
515
515
|
|
|
516
516
|
const GEONAME_SQL = `SELECT
|
|
517
517
|
g.name as name,
|
|
@@ -1044,13 +1044,19 @@ class GeoDb {
|
|
|
1044
1044
|
}
|
|
1045
1045
|
}
|
|
1046
1046
|
|
|
1047
|
+
/* eslint-disable no-multi-spaces */
|
|
1048
|
+
|
|
1047
1049
|
const fcodeKeep = {
|
|
1048
|
-
PPL: true, // populated place a city, town, village, or other agglomeration of
|
|
1049
|
-
PPLA: true, // seat of a first-order administrative division
|
|
1050
|
+
PPL: true, // populated place: a city, town, village, or other agglomeration of
|
|
1051
|
+
PPLA: true, // seat of a first-order administrative division (PPLC takes precedence over PPLA)
|
|
1050
1052
|
PPLA2: true, // seat of a second-order administrative division
|
|
1051
1053
|
PPLA3: true, // seat of a third-order administrative division
|
|
1052
1054
|
PPLC: true, // capital of a political entity
|
|
1053
|
-
|
|
1055
|
+
// an area similar to a locality but with a small group of dwellings or other buildings
|
|
1056
|
+
PPLG: true, // seat of government of a political entity
|
|
1057
|
+
PPLL: true, // populated locality
|
|
1058
|
+
// cities, towns, villages, or other agglomerations of buildings where people live and work
|
|
1059
|
+
PPLS: true, // populated places
|
|
1054
1060
|
PPLX: true, // section of populated place
|
|
1055
1061
|
STLMT: true, // israeli settlement
|
|
1056
1062
|
};
|
|
@@ -1130,6 +1136,9 @@ async function buildGeonamesSqlite(opts) {
|
|
|
1130
1136
|
};
|
|
1131
1137
|
const minPopulation = opts.population;
|
|
1132
1138
|
const citiesFilter = (a) => {
|
|
1139
|
+
if (!a[17]) {
|
|
1140
|
+
return false; // require a non-empty iana timezone id
|
|
1141
|
+
}
|
|
1133
1142
|
const fcode = a[7];
|
|
1134
1143
|
logger.debug(a[0], a[1], fcode);
|
|
1135
1144
|
if (!fcodeKeep[fcode]) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hebcal/geo-sqlite",
|
|
3
|
-
"version": "5.7.
|
|
3
|
+
"version": "5.7.2",
|
|
4
4
|
"author": "Michael J. Radwin (https://github.com/mjradwin)",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"hebcal"
|
|
@@ -70,6 +70,6 @@
|
|
|
70
70
|
"globals": "^16.5.0",
|
|
71
71
|
"jsdoc": "^4.0.5",
|
|
72
72
|
"jsdoc-to-markdown": "^9.1.3",
|
|
73
|
-
"rollup": "^4.
|
|
73
|
+
"rollup": "^4.54.0"
|
|
74
74
|
}
|
|
75
75
|
}
|