@winrisef/world-cities 0.1.135 → 0.1.137

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.
Files changed (137) hide show
  1. package/COVERAGE.md +252 -260
  2. package/NOTICE.md +51 -85
  3. package/README.md +23 -6
  4. package/data/coverage.json +1 -1
  5. package/data/search/00.json +1 -0
  6. package/data/search/01.json +1 -0
  7. package/data/search/02.json +1 -0
  8. package/data/search/03.json +1 -0
  9. package/data/search/04.json +1 -0
  10. package/data/search/05.json +1 -0
  11. package/data/search/06.json +1 -0
  12. package/data/search/07.json +1 -0
  13. package/data/search/08.json +1 -0
  14. package/data/search/09.json +1 -0
  15. package/data/search/0a.json +1 -0
  16. package/data/search/0b.json +1 -0
  17. package/data/search/0c.json +1 -0
  18. package/data/search/0d.json +1 -0
  19. package/data/search/0e.json +1 -0
  20. package/data/search/0f.json +1 -0
  21. package/data/search/10.json +1 -0
  22. package/data/search/11.json +1 -0
  23. package/data/search/12.json +1 -0
  24. package/data/search/13.json +1 -0
  25. package/data/search/14.json +1 -0
  26. package/data/search/15.json +1 -0
  27. package/data/search/16.json +1 -0
  28. package/data/search/17.json +1 -0
  29. package/data/search/18.json +1 -0
  30. package/data/search/19.json +1 -0
  31. package/data/search/1a.json +1 -0
  32. package/data/search/1b.json +1 -0
  33. package/data/search/1c.json +1 -0
  34. package/data/search/1d.json +1 -0
  35. package/data/search/1e.json +1 -0
  36. package/data/search/1f.json +1 -0
  37. package/data/search/20.json +1 -0
  38. package/data/search/21.json +1 -0
  39. package/data/search/22.json +1 -0
  40. package/data/search/23.json +1 -0
  41. package/data/search/24.json +1 -0
  42. package/data/search/25.json +1 -0
  43. package/data/search/26.json +1 -0
  44. package/data/search/27.json +1 -0
  45. package/data/search/28.json +1 -0
  46. package/data/search/29.json +1 -0
  47. package/data/search/2a.json +1 -0
  48. package/data/search/2b.json +1 -0
  49. package/data/search/2c.json +1 -0
  50. package/data/search/2d.json +1 -0
  51. package/data/search/2e.json +1 -0
  52. package/data/search/2f.json +1 -0
  53. package/data/search/30.json +1 -0
  54. package/data/search/31.json +1 -0
  55. package/data/search/32.json +1 -0
  56. package/data/search/33.json +1 -0
  57. package/data/search/34.json +1 -0
  58. package/data/search/35.json +1 -0
  59. package/data/search/36.json +1 -0
  60. package/data/search/37.json +1 -0
  61. package/data/search/38.json +1 -0
  62. package/data/search/39.json +1 -0
  63. package/data/search/3a.json +1 -0
  64. package/data/search/3b.json +1 -0
  65. package/data/search/3c.json +1 -0
  66. package/data/search/3d.json +1 -0
  67. package/data/search/3e.json +1 -0
  68. package/data/search/3f.json +1 -0
  69. package/data/search/40.json +1 -0
  70. package/data/search/41.json +1 -0
  71. package/data/search/42.json +1 -0
  72. package/data/search/43.json +1 -0
  73. package/data/search/44.json +1 -0
  74. package/data/search/45.json +1 -0
  75. package/data/search/46.json +1 -0
  76. package/data/search/47.json +1 -0
  77. package/data/search/48.json +1 -0
  78. package/data/search/49.json +1 -0
  79. package/data/search/4a.json +1 -0
  80. package/data/search/4b.json +1 -0
  81. package/data/search/4c.json +1 -0
  82. package/data/search/4d.json +1 -0
  83. package/data/search/4e.json +1 -0
  84. package/data/search/4f.json +1 -0
  85. package/data/search/50.json +1 -0
  86. package/data/search/51.json +1 -0
  87. package/data/search/52.json +1 -0
  88. package/data/search/53.json +1 -0
  89. package/data/search/54.json +1 -0
  90. package/data/search/55.json +1 -0
  91. package/data/search/56.json +1 -0
  92. package/data/search/57.json +1 -0
  93. package/data/search/58.json +1 -0
  94. package/data/search/59.json +1 -0
  95. package/data/search/5a.json +1 -0
  96. package/data/search/5b.json +1 -0
  97. package/data/search/5c.json +1 -0
  98. package/data/search/5d.json +1 -0
  99. package/data/search/5e.json +1 -0
  100. package/data/search/5f.json +1 -0
  101. package/data/search/60.json +1 -0
  102. package/data/search/61.json +1 -0
  103. package/data/search/62.json +1 -0
  104. package/data/search/63.json +1 -0
  105. package/data/search/64.json +1 -0
  106. package/data/search/65.json +1 -0
  107. package/data/search/66.json +1 -0
  108. package/data/search/67.json +1 -0
  109. package/data/search/68.json +1 -0
  110. package/data/search/69.json +1 -0
  111. package/data/search/6a.json +1 -0
  112. package/data/search/6b.json +1 -0
  113. package/data/search/6c.json +1 -0
  114. package/data/search/6d.json +1 -0
  115. package/data/search/6e.json +1 -0
  116. package/data/search/6f.json +1 -0
  117. package/data/search/70.json +1 -0
  118. package/data/search/71.json +1 -0
  119. package/data/search/72.json +1 -0
  120. package/data/search/73.json +1 -0
  121. package/data/search/74.json +1 -0
  122. package/data/search/75.json +1 -0
  123. package/data/search/76.json +1 -0
  124. package/data/search/77.json +1 -0
  125. package/data/search/78.json +1 -0
  126. package/data/search/79.json +1 -0
  127. package/data/search/7a.json +1 -0
  128. package/data/search/7b.json +1 -0
  129. package/data/search/7c.json +1 -0
  130. package/data/search/7d.json +1 -0
  131. package/data/search/7e.json +1 -0
  132. package/data/search/7f.json +1 -0
  133. package/licenses/chinese-place-names.md +2 -2
  134. package/licenses/municipal-rosters.md +135 -135
  135. package/licenses/official-data.md +1 -1
  136. package/licenses/single-city-review.md +1 -1
  137. package/package.json +1 -1
package/NOTICE.md CHANGED
@@ -4,7 +4,7 @@ This database is based predominantly on official administrative-division referen
4
4
 
5
5
  Source attribution: includes data derived from [Countries States Cities Database](https://github.com/dr5hn/countries-states-cities-database/releases/tag/v5.2.0-export.1) by Darshan Gada and contributors, snapshot v5.2.0-export.1, under the Open Database License 1.0.
6
6
 
7
- This edition selects and normalizes names, keeps administrative links and WGS84 coordinates, adds generated Mandarin readings and reviewed corrections, and groups records by country. The upstream data files and SHA-256 digests are identified in sources.lock.json. The npm package includes the complete derived database in machine-readable JSON. Pinyin is generated using pinyin-pro at build time.
7
+ Data snapshots and SHA-256 digests: `sources.lock.json`. Pinyin: `pinyin-pro`.
8
8
 
9
9
  Mainland China administrative codes and official names are selected from [mumuy/data_location](https://github.com/mumuy/data_location), used under MIT (see licenses/data_location-MIT.txt).
10
10
 
@@ -12,92 +12,58 @@ The China Institute of Toponymy supplied Xiamen's city point to the [UN Group of
12
12
 
13
13
  The public-domain [Natural Earth populated places, 1:10m v5.1.2](https://www.naturalearthdata.com/downloads/10m-cultural-vectors/10m-populated-places/) supplies cross-checks, names and five city-territory coordinates.
14
14
 
15
- Additional city status, labels and selected seat coordinates are from [Wikidata structured data (CC0)](https://www.wikidata.org/wiki/Wikidata:Licensing). The repository keeps a frozen Wikidata extract, its SPARQL query and supplemental names. Where the administrative-area point is distant from the urban seat, the reviewed Tibetan seat entries cite the coordinate entity in corrections/names.json.
15
+ City classifications, names and coordinates: [Wikidata (CC0)](https://www.wikidata.org/wiki/Wikidata:Licensing).
16
16
 
17
17
  The UK city selection is based on the [Cabinet Office List of cities](https://www.gov.uk/government/publications/list-of-cities/list-of-cities-html). Contains public sector information licensed under the [Open Government Licence v3.0](https://www.nationalarchives.gov.uk/doc/open-government-licence/version/3/).
18
18
 
19
19
  National city registers and additional urban coordinates are credited in [official-data.md](licenses/official-data.md), including the U.S. Census Bureau, IBGE, Destatis, Japan MIC, Philippine Statistics Authority and GeoNames.
20
20
 
21
- Local-government rosters and territorial place names added in 0.1.8 are documented in [the source register](licenses/single-city-review.md).
22
-
23
- The 0.1.9 municipal review uses HCP census identifiers, GISCO 2024 geography and location points credited in [the source register](licenses/municipal-followup.md).
24
-
25
- Localities and municipal equivalents added from 0.1.10 through 0.1.12 are credited in [the locality source register](licenses/search-localities.md).
26
-
27
- Municipal registers, point sources and licenses for Albania, Armenia, Austria, Azerbaijan, Bahrain, Belarus, Belgium, Benin, Bhutan, Bosnia and Herzegovina, Botswana, Burundi, Cabo Verde, Cameroon, Chile, Christmas Island, Cocos (Keeling) Islands, Colombia, Comoros, Congo (Brazzaville), Costa Rica, Cyprus, Denmark, Djibouti, Dominican Republic, Ecuador, El Salvador, Equatorial Guinea, Eswatini, Gabon, Georgia, Greenland, Guernsey, Guyana, Iceland, Ireland, Jamaica, Jersey, Jordan, Kazakhstan, Kenya, Kiribati, Kyrgyzstan, Lesotho, Lithuania, Malawi, Malaysia, Mauritius, Moldova, Montenegro, Montserrat, Mozambique, Namibia, the Netherlands, New Zealand, Norfolk Island, North Macedonia, Norway, Oman, Paraguay, Portugal, Puerto Rico, Rwanda, Saint Lucia, Serbia, Sierra Leone, South Korea, Sri Lanka, Sweden, Tajikistan, Thailand, Timor-Leste, Togo, Trinidad and Tobago, Uganda, Uzbekistan, Vietnam, and Zimbabwe are listed in [the municipal source register](licenses/municipal-rosters.md).
28
-
29
- Additional Chinese names and project transliterations added in 0.1.14 are described in [the Chinese name sources](licenses/chinese-place-names.md).
30
-
31
- The 0.1.42 reviews of Cuba, Greece, Israel, Portugal, Tanzania, and Uruguay cite the national registers, coordinate providers, and municipal verification tables in [the municipal source register](licenses/municipal-rosters.md).
32
-
33
- The 0.1.43 reviews of Haiti, Peru, and Turkmenistan cite national registers and coordinate sources in [the municipal source register](licenses/municipal-rosters.md).
34
-
35
- The 0.1.44 reviews of Australia, South Africa, and Switzerland cite official municipal registers, boundary-derived points, and GeoNames in [the municipal source register](licenses/municipal-rosters.md).
36
-
37
- The 0.1.45 reviews of Spain, Italy, and Mexico use the official INE and IGN, Istat, and INEGI registers, with source and point methods documented in [the municipal source register](licenses/municipal-rosters.md).
38
-
39
- The 0.1.46 review of metropolitan France uses Insee's Code officiel géographique and Etalab's 2026 mairie point layer under Licence Ouverte 2.0. [Source details](licenses/municipal-rosters.md)
40
-
41
- The 0.1.47 review credits Angola’s National Institute of Statistics for the Census Atlas, Bolivia’s INE, SDSN Bolivia and Laboratorio de Tecnologías Sociales for the municipal geodata (CC BY 4.0), and the Mongolian NSO and OCHA for the COD-AB reference (CC BY 3.0 IGO). Same-name settlement coordinates use GeoNames (CC BY 4.0). [Source details](licenses/municipal-rosters.md)
42
-
43
- The 0.1.48 review uses U.S. Census Bureau TIGER/Line data for American Samoa, Ukraine’s 2026 KATOTTG and OpenStreetMap contributor coordinates cross-referenced by ua-geo (ODbL), and Venezuela INE boundaries from OCHA (CC BY 3.0 IGO). [Source details](licenses/municipal-rosters.md)
44
-
45
- The 0.1.51 review credits the Tonga Statistics Department and Department of Lands, the Palau National Government, Suriname’s electoral secretariat, and Equatorial Guinea’s national statistical institute and government press office. Reference points use GeoNames, geoBoundaries, and OpenStreetMap contributors where indicated. [Source details](licenses/municipal-rosters.md)
46
-
47
- The 0.1.50 review credits Nigeria’s Office of the Surveyor-General and Independent National Electoral Commission, Burkina Faso’s INSD and Institut Géographique du Burkina, and the Lao Statistics Bureau and National Geographic Department. Geographic points and boundaries provided through OCHA COD-AB are credited under [CC BY 3.0 IGO](https://creativecommons.org/licenses/by/3.0/igo/). [Source details](licenses/municipal-rosters.md)
48
-
49
- The 0.1.49 review credits Argentina’s INDEC and Georef, Algeria’s national gazette and syscli’s MIT transcription ([license](licenses/syscli-algeria-MIT.txt)), and Julia Clark’s reference map of Tunisian municipalities. Boundaries from OpenStreetMap-derived layers are credited to OpenStreetMap contributors. [Source details](licenses/municipal-rosters.md)
50
-
51
- The 0.1.52 review credits Senegal's ANSD and ONDDL, Vie-Publique and OrvLabs, Niger's INS and Ministry of the Interior, and the Turks and Caicos Islands Attorney General's Chambers. Point sources credit GeoNames, OpenStreetMap contributors, and OCHA's COD partners where indicated. See [source details](licenses/municipal-rosters.md).
52
-
53
- The 0.1.53 review credits Statistics Canada, the relevant Canadian provincial governments, Côte d’Ivoire’s General Directorate of Taxes and Treasury, and Bhutan’s Ministry of Infrastructure and Transport and Election Commission. Representative points also use GeoNames and OpenStreetMap contributors. See [source details](licenses/municipal-rosters.md).
54
-
55
- The 0.1.54 review credits the Sudanese Ministry of Justice and COD-AB contributors, the Parliament and Central Statistical Organization of Yemen, and Kuwait’s Ministry of Justice. Point attribution is recorded per place, including GeoNames, Overture Maps, and OCHA COD partners where indicated. See [source details](licenses/municipal-rosters.md).
56
-
57
- The 0.1.55 review credits Mauritania’s ANSADE, Ministry of the Interior, GeoNames, Open Admin Data and CheikhEbeoumar/mauritania-geo, together with the Saint Kitts and Nevis Law Commission and the Nevis Island Administration. See [source details](licenses/municipal-rosters.md).
58
-
59
- The 0.1.56 Myanmar roster credits the General Administration Department and the Myanmar Information Management Unit. The MIMU-sourced elements are available for noncommercial reuse with attribution under [MIMU terms](https://themimu.info/license/). Representative points also credit GeoNames and OpenStreetMap contributors as indicated in [the source register](licenses/municipal-rosters.md).
60
-
61
- The 0.1.57 Madagascar review credits the Independent National Electoral Commission, the National Legislation Centre, BNGRC and OCHA for election and administrative reference data. Coordinates also credit GeoNames and OpenStreetMap contributors. See [source details](licenses/municipal-rosters.md).
62
-
63
- The 0.1.58 Palestine review credits the Central Elections Commission, the Municipal Development and Lending Fund, and GeoNames. See [source details](licenses/municipal-rosters.md).
64
-
65
- The 0.1.59 Guinea and Guinea-Bissau review credits the respective ministries, the national statistical agencies, OCHA COD partners, GeoNames, OpenStreetMap contributors, and the additional point references documented per row. See [source details](licenses/municipal-rosters.md).
66
-
67
- The 0.1.60 Eritrea review credits the Eritrean ministries, the Central Region Administration, African Development Bank project materials, OCHA COD partners, and GeoNames. See [source details](licenses/municipal-rosters.md).
68
-
69
- The 0.1.61 Korea (North) review credits the Korean national statistics office and Ministry of Unification, the administrative law collection published by the National Intelligence Service, GeoNames, and the Endonym Atlas. See [source details](licenses/municipal-rosters.md).
70
-
71
- The 0.1.62 reviews credit the UAE federal and emirate governments, the Moroccan Haut-Commissariat au Plan and Interior Ministry, the Morocco Census crosswalk, GISCO, GeoNames and Wikidata. See [source details](licenses/municipal-rosters.md).
72
-
73
- The 0.1.63 Central African Republic review credits ICASEES, the national elections authority, the U.S. Census Bureau, OCHA COD partners, MINUSCA, GeoNames and OpenStreetMap contributors. See [source details](licenses/municipal-rosters.md).
74
-
75
- The 0.1.64 Türkiye review credits the Turkish Official Gazette and the Ministry of Environment, Urbanisation and Climate Change, the Ministry of Interior, OCHA COD partners, GeoNames and OpenStreetMap contributors. See [source details](licenses/municipal-rosters.md).
76
-
77
- The 0.1.68 Libya review credits the Ministry of Local Government, Libya's High National Elections Commission, the Libyan Legal Archive, and OCHA's Libya COD partners. Representative coordinates credit GeoNames and OpenStreetMap contributors where indicated. See [source details](licenses/municipal-rosters.md).
78
-
79
- The 0.1.69 Russia review credits the Bank of Russia publications of OKATO and OKTMO, the Federal Agency on Technical Regulating and Metrology, the Leningrad Oblast legislature, Kurskstat and GeoNames. See [source details](licenses/municipal-rosters.md).
80
-
81
- The 0.1.70 Iran review credits the Statistical Centre of Iran, the public cabinet decisions where indicated, GeoNames, OpenStreetMap contributors and Wikidata. See [source details](licenses/municipal-rosters.md).
82
-
83
- The 0.1.72 Lebanon review credits the Ministry of Interior and Municipalities, UNDP Lebanon, the Municipality of Tabarja and Kfaryassine, Lebanon's Central Administration of Statistics, OCHA, GeoNames and OpenStreetMap contributors. See [source details](licenses/municipal-rosters.md).
84
-
85
- The 0.1.73 Somalia review credits the Somali Disaster Management Agency, OCHA, FAO SWALIM, GeoNames and OpenStreetMap contributors. See [source details](licenses/municipal-rosters.md).
86
-
87
- The 0.1.74 Curaçao and Sint Maarten review credits their spatial planning ministries and Curaçao's Central Bureau of Statistics. See [source details](licenses/municipal-rosters.md).
88
-
89
- The 0.1.75 Ethiopia review credits the Ethiopian Statistical Service, regional Bureaux of Finance and Economic Development, OCHA, GeoNames and the UNHCR map referenced by DIIS. See [source details](licenses/municipal-rosters.md).
90
-
91
- The 0.1.76 Egypt review credits the Cabinet’s Information and Decision Support Center, CAPMAS, the New Urban Communities Authority, the Egyptian General Survey Authority, OCHA, GeoNames, and keltokhy/Egypt_NUCA’s transcription of the official city planning layer. See [source details](licenses/municipal-rosters.md).
92
-
93
- The 0.1.77 Pakistan review credits the Pakistan Bureau of Statistics, Survey of Pakistan, Punjab and Balochistan local government departments, Khyber Pakhtunkhwa local government offices, the Azad Jammu and Kashmir Planning and Development Department, the Gilgit-Baltistan Election Commission, OCHA, GeoNames, and OpenStreetMap contributors. See [source details](licenses/municipal-rosters.md).
94
-
95
- The 0.1.78 South Sudan review credits the National Audit Chamber, the National Bureau of Statistics, the Ministry of Finance and Planning, the National Elections Commission, Abyei and Warrap local administrations, OCHA, IOM, GeoNames, and OpenStreetMap contributors. See [source details](licenses/municipal-rosters.md).
96
-
97
- The 0.1.80 India review credits the Ministry of Panchayati Raj, the National Informatics Centre (Bharatmaps), the Central Pollution Control Board, Ministry of Housing and Urban Affairs, Survey of India, India Post, the respective governments of Delhi, Telangana, Karnataka and Maharashtra, GeoNames, OpenStreetMap and Wikimedia contributors. See [source details](licenses/municipal-rosters.md).
98
-
99
- The 0.1.81 partial review credits Mali's National Directorate of Territorial Planning, National Institute of Statistics, Ministry of Economy and Finance and Geographic Institute, Chad's General Secretariat of Government and INSEED, Liberia's Executive Mansion, Ministry of Local Government, LISGIS and the Liberia News Agency, and the OCHA, UNMEER, GeoNames and OpenStreetMap contributors named in the [source register](licenses/municipal-rosters.md).
100
-
101
- The 0.1.82 partial review credits the Afghanistan National Portal and the government and UN-Habitat State of Afghan Cities project, Iraq's Basra Municipalities Directorate, Syria's published city-council decrees and local administration ministry, and OCHA and GeoNames for representative points. See [source details](licenses/municipal-rosters.md).
102
-
103
- The 0.1.84 review credits Syria's Ministry of Local Administration and Environment for its published council appointment orders, the Syrian Official Gazette and SANA for later records, and OCHA and GeoNames for populated-place coordinates. Mali's added points were checked against its 2023 commune act and OCHA/IGM district boundaries. See [source details](licenses/municipal-rosters.md).
21
+ Local-government rosters and territorial place names are documented in [the source register](licenses/single-city-review.md).
22
+
23
+ Municipal data uses HCP census identifiers, GISCO 2024 geography and location points credited in [the source register](licenses/municipal-followup.md).
24
+
25
+ Localities and municipal equivalents are credited in [the locality source register](licenses/search-localities.md).
26
+
27
+ Municipal registers, coordinate sources and license details are listed by country in [the municipal source register](licenses/municipal-rosters.md).
28
+
29
+ Chinese names and transliterations are described in [the Chinese name sources](licenses/chinese-place-names.md).
30
+
31
+ ## Additional source attribution
32
+
33
+ See the [municipal source register](licenses/municipal-rosters.md) for country-specific sources and terms.
34
+
35
+ - Australia, South Africa, and Switzerland cite official municipal registers, boundary-derived points, and GeoNames in [the municipal source register](licenses/municipal-rosters.md).
36
+ - Spain, Italy, and Mexico use the official INE and IGN, Istat, and INEGI registers, with source and point methods documented in [the municipal source register](licenses/municipal-rosters.md).
37
+ - Metropolitan France uses Insee's Code officiel géographique and Etalab's 2026 mairie point layer under Licence Ouverte 2.0.
38
+ - Angola’s National Institute of Statistics for the Census Atlas, Bolivia’s INE, SDSN Bolivia and Laboratorio de Tecnologías Sociales for the municipal geodata (CC BY 4.0), and the Mongolian NSO and OCHA for the COD-AB reference (CC BY 3.0 IGO). Same-name settlement coordinates use GeoNames (CC BY 4.0).
39
+ - American Samoa, Ukraine and Venezuela: U.S. Census Bureau TIGER/Line data, Ukraine’s 2026 KATOTTG and OpenStreetMap contributor coordinates cross-referenced by ua-geo (ODbL), and Venezuela INE boundaries from OCHA (CC BY 3.0 IGO).
40
+ - the Tonga Statistics Department and Department of Lands, the Palau National Government, Suriname’s electoral secretariat, and Equatorial Guinea’s national statistical institute and government press office. Reference points use GeoNames, geoBoundaries, and OpenStreetMap contributors where indicated.
41
+ - Nigeria’s Office of the Surveyor-General and Independent National Electoral Commission, Burkina Faso’s INSD and Institut Géographique du Burkina, and the Lao Statistics Bureau and National Geographic Department. Geographic points and boundaries provided through OCHA COD-AB are credited under [CC BY 3.0 IGO](https://creativecommons.org/licenses/by/3.0/igo/).
42
+ - Argentina’s INDEC and Georef, Algeria’s national gazette and syscli’s MIT transcription ([license](licenses/syscli-algeria-MIT.txt)), and Julia Clark’s reference map of Tunisian municipalities. Boundaries from OpenStreetMap-derived layers are credited to OpenStreetMap contributors.
43
+ - Senegal's ANSD and ONDDL, Vie-Publique and OrvLabs, Niger's INS and Ministry of the Interior, and the Turks and Caicos Islands Attorney General's Chambers. Point sources credit GeoNames, OpenStreetMap contributors, and OCHA's COD partners where indicated.
44
+ - Statistics Canada, the relevant Canadian provincial governments, Côte d’Ivoire’s General Directorate of Taxes and Treasury, and Bhutan’s Ministry of Infrastructure and Transport and Election Commission. Representative points also use GeoNames and OpenStreetMap contributors.
45
+ - the Sudanese Ministry of Justice and COD-AB contributors, the Parliament and Central Statistical Organization of Yemen, and Kuwait’s Ministry of Justice. Point attribution is recorded per place, including GeoNames, Overture Maps, and OCHA COD partners where indicated.
46
+ - Mauritania’s ANSADE, Ministry of the Interior, GeoNames, Open Admin Data and CheikhEbeoumar/mauritania-geo, together with the Saint Kitts and Nevis Law Commission and the Nevis Island Administration.
47
+ - Myanmar sources include the General Administration Department and the Myanmar Information Management Unit. The MIMU-sourced elements are available for noncommercial reuse with attribution under [MIMU terms](https://themimu.info/license/). Representative points also credit GeoNames and OpenStreetMap contributors as indicated in [the source register](licenses/municipal-rosters.md).
48
+ - Madagascar sources include the Independent National Electoral Commission, the National Legislation Centre, BNGRC and OCHA for election and administrative reference data. Coordinates also credit GeoNames and OpenStreetMap contributors.
49
+ - Palestine sources include the Central Elections Commission, the Municipal Development and Lending Fund, and GeoNames.
50
+ - Guinea and Guinea-Bissau sources include the respective ministries, the national statistical agencies, OCHA COD partners, GeoNames, OpenStreetMap contributors, and the additional point references documented per row.
51
+ - Eritrea sources include the Eritrean ministries, the Central Region Administration, African Development Bank project materials, OCHA COD partners, and GeoNames.
52
+ - Korea (North) sources include the Korean national statistics office and Ministry of Unification, the administrative law collection published by the National Intelligence Service, GeoNames, and the Endonym Atlas.
53
+ - the UAE federal and emirate governments, the Moroccan Haut-Commissariat au Plan and Interior Ministry, the Morocco Census crosswalk, GISCO, GeoNames and Wikidata.
54
+ - Central African Republic sources include ICASEES, the national elections authority, the U.S. Census Bureau, OCHA COD partners, MINUSCA, GeoNames and OpenStreetMap contributors.
55
+ - Türkiye sources include the Turkish Official Gazette and the Ministry of Environment, Urbanisation and Climate Change, the Ministry of Interior, OCHA COD partners, GeoNames and OpenStreetMap contributors.
56
+ - Libya sources include the Ministry of Local Government, Libya's High National Elections Commission, the Libyan Legal Archive, and OCHA's Libya COD partners. Representative coordinates credit GeoNames and OpenStreetMap contributors where indicated.
57
+ - Russia sources include the Bank of Russia publications of OKATO and OKTMO, the Federal Agency on Technical Regulating and Metrology, the Leningrad Oblast legislature, Kurskstat and GeoNames.
58
+ - Iran sources include the Statistical Centre of Iran, the public cabinet decisions where indicated, GeoNames, OpenStreetMap contributors and Wikidata.
59
+ - Lebanon sources include the Ministry of Interior and Municipalities, UNDP Lebanon, the Municipality of Tabarja and Kfaryassine, Lebanon's Central Administration of Statistics, OCHA, GeoNames and OpenStreetMap contributors.
60
+ - Somalia sources include the Somali Disaster Management Agency, OCHA, FAO SWALIM, GeoNames and OpenStreetMap contributors.
61
+ - Curaçao and Sint Maarten sources include their spatial planning ministries and Curaçao's Central Bureau of Statistics.
62
+ - Ethiopia sources include the Ethiopian Statistical Service, regional Bureaux of Finance and Economic Development, OCHA, GeoNames and the UNHCR map referenced by DIIS.
63
+ - Egypt sources include the Cabinet’s Information and Decision Support Center, CAPMAS, the New Urban Communities Authority, the Egyptian General Survey Authority, OCHA, GeoNames, and keltokhy/Egypt_NUCA’s transcription of the official city planning layer.
64
+ - Pakistan sources include the Pakistan Bureau of Statistics, Survey of Pakistan, Punjab and Balochistan local government departments, Khyber Pakhtunkhwa local government offices, the Azad Jammu and Kashmir Planning and Development Department, the Gilgit-Baltistan Election Commission, OCHA, GeoNames, and OpenStreetMap contributors.
65
+ - South Sudan sources include the National Audit Chamber, the National Bureau of Statistics, the Ministry of Finance and Planning, the National Elections Commission, Abyei and Warrap local administrations, OCHA, IOM, GeoNames, and OpenStreetMap contributors.
66
+ - India sources include the Ministry of Panchayati Raj, the National Informatics Centre (Bharatmaps), the Central Pollution Control Board, Ministry of Housing and Urban Affairs, Survey of India, India Post, the respective governments of Delhi, Telangana, Karnataka and Maharashtra, GeoNames, OpenStreetMap and Wikimedia contributors.
67
+ - Mali's National Directorate of Territorial Planning, National Institute of Statistics, Ministry of Economy and Finance and Geographic Institute, Chad's General Secretariat of Government and INSEED, Liberia's Executive Mansion, Ministry of Local Government, LISGIS and the Liberia News Agency, and the OCHA, UNMEER, GeoNames and OpenStreetMap contributors named in the [source register](licenses/municipal-rosters.md).
68
+ - the Afghanistan National Portal and the government and UN-Habitat State of Afghan Cities project, Iraq's Basra Municipalities Directorate, Syria's published city-council decrees and local administration ministry, and OCHA and GeoNames for representative points.
69
+ - Syria's Ministry of Local Administration and Environment for its published council appointment orders, the Syrian Official Gazette and SANA for later records, and OCHA and GeoNames for populated-place coordinates. Mali's added points were checked against its 2023 commune act and OCHA/IGM district boundaries.
package/README.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  A worldwide geographic database of countries, administrative regions, cities and city-level equivalents, with Chinese and English names, Mandarin pinyin, and WGS84 coordinates. Country-specific JSON files can be loaded on demand, with zero runtime dependencies.
4
4
 
5
- [简体中文](#简体中文) · [Coverage](COVERAGE.md) · [Data attribution](NOTICE.md)
5
+ [Live demo / 在线展示](https://winrisef.github.io/world-cities/) · [简体中文](#简体中文) · [Coverage](COVERAGE.md) · [Data attribution](NOTICE.md)
6
6
 
7
7
  The administrative rosters are based almost entirely on official national sources, supplemented by other public geographic references for cross-checking and filling gaps. Names, data formats and representative coordinates are normalized across countries.
8
8
 
@@ -15,7 +15,7 @@ The administrative rosters are based almost entirely on official national source
15
15
  | Cities, city-level equivalents and representative places | 122,061 |
16
16
  | City records with English, Chinese and pinyin names | 100% |
17
17
 
18
- Of the 247 countries and territories, 229 have been checked against their statutory reference rosters, 5 prioritize major cities, and 13 have no applicable city-level administrative structure. Administrative definitions differ by country; the total is not a count of legally designated cities alone. See [coverage details](COVERAGE.md). Places without established Chinese translations use project-supplied transliterations or translations.
18
+ Coverage: 229 reference-checked, 5 major-city selections, 13 not applicable. See [coverage details](COVERAGE.md). Chinese names without established translations are translated or transliterated.
19
19
 
20
20
  ## Installation
21
21
 
@@ -49,13 +49,28 @@ const results = cityList.filter(city =>
49
49
  Load JSON directly without installing the package. Pin a version to keep the data consistent:
50
50
 
51
51
  ```js
52
- const base = 'https://cdn.jsdelivr.net/npm/@winrisef/world-cities@0.1.135/data'
52
+ const base = 'https://cdn.jsdelivr.net/npm/@winrisef/world-cities@0.1.137/data'
53
53
  const countries = await fetch(`${base}/countries.json`).then(r => r.json())
54
54
  const cities = await fetch(`${base}/cities/CN.json`).then(r => r.json())
55
55
  ```
56
56
 
57
57
  You can also serve the packaged `data/` directory yourself and change `base` accordingly.
58
58
 
59
+ ### Global search routing
60
+
61
+ Search a name before downloading country files. The 128 `data/search/` shards map normalized name prefixes to country codes; fetch only the matching countries' city and region files.
62
+
63
+ ```js
64
+ const term = 'Lhasa'.normalize('NFKD').replace(/\p{M}/gu, '').toLowerCase().replace(/[^\p{L}\p{N}]/gu, '')
65
+ const chars = [...term]
66
+ const prefix = chars.slice(0, /\p{Script=Han}/u.test(chars[0]) ? 1 : 2)
67
+ const shard = (prefix.reduce((n, c) => n * 31 + c.codePointAt(0), 0) % 128).toString(16).padStart(2, '0')
68
+ const entries = await fetch(`${base}/search/${shard}.json`).then(r => r.json())
69
+ const codes = new Set(entries.filter(([name]) => name.startsWith(term)).flatMap(([, ids]) => ids.match(/../g)))
70
+ ```
71
+
72
+ Use at least two non-Han characters, or one Chinese character. Each row is `[normalizedName, concatenatedCountryCodes]`; the actual place records remain in the country files.
73
+
59
74
  ## Data structure
60
75
 
61
76
  | Path | Fields |
@@ -64,6 +79,7 @@ You can also serve the packaged `data/` directory yourself and change `base` acc
64
79
  | `data/regions/{ISO2}.json` | `id`, `country`, `code`, `zh`, `en`, `pinyin`; optional `aliases`, `children` |
65
80
  | `data/cities/{ISO2}.json` | `id`, `country`, `region`, `kind`, `zh`, `en`, `pinyin`, `lat`, `lon`; optional `subregion`, `officialId`, `aliases` |
66
81
  | `data/coverage.json` | Record totals, name coverage and per-country verification status |
82
+ | `data/search/{00..7f}.json` | Normalized names and country-code routing index |
67
83
 
68
84
  - `region` refers to a first-level administrative region ID, or is `null` when no applicable region exists or one cannot be reliably determined.
69
85
  - `subregion` may refer to an entry in `children`, or contain a lower-level name or code from the source roster. Treat `id` values as opaque strings.
@@ -81,7 +97,7 @@ npm run pack:local
81
97
 
82
98
  ## License and attribution
83
99
 
84
- The database is licensed under [ODbL 1.0](LICENSE), subject to the source-specific reuse conditions documented in [`licenses/`](licenses/). Retain the license and [data attribution](NOTICE.md) when using or redistributing the data. The administrative rosters are based predominantly on official sources.
100
+ The database is licensed under [ODbL 1.0](LICENSE), subject to the source-specific reuse conditions documented in [`licenses/`](licenses/). Retain the license and [data attribution](NOTICE.md) when using or redistributing the data.
85
101
 
86
102
  ---
87
103
 
@@ -100,7 +116,7 @@ The database is licensed under [ODbL 1.0](LICENSE), subject to the source-specif
100
116
  | 城市及同级单位、代表地点 | 122,061 |
101
117
  | 城市中英文及拼音覆盖率 | 100% |
102
118
 
103
- 229 个国家和地区按法定名录核验,5 个按主要城市优先收录,13 个不适用市级建制口径。各国行政建制不同,总量并非仅指法定城市数量。具体范围见 [数据覆盖](COVERAGE.md)。无通行中文译名的地点采用项目音译或意译。
119
+ 覆盖状态:229 个名录已核验,5 个仅收录主要城市,13 个不适用市级建制。详见 [数据覆盖](COVERAGE.md)。无通行中文译名的地点采用音译或意译。
104
120
 
105
121
  ### 安装与使用
106
122
 
@@ -111,7 +127,7 @@ npm install @winrisef/world-cities
111
127
  - Node.js:通过 `countryFiles('CN')` 获取省级行政区和城市 JSON 的 URL,再读取数据,按 `zh`、`en`、`pinyin` 和 `aliases` 字段搜索。
112
128
  - 浏览器:直接请求固定版本的 CDN JSON,或自行部署 `data/`,无需引入库。
113
129
 
114
- 完整代码示例见上方 [Usage](#usage)。
130
+ 完整代码示例见上方 [Usage](#usage)。全球地名检索可先调用[搜索索引](#global-search-routing),再按需加载国家数据。
115
131
 
116
132
  ### 数据结构
117
133
 
@@ -121,6 +137,7 @@ npm install @winrisef/world-cities
121
137
  | `data/regions/{ISO2}.json` | `id`, `country`, `code`, `zh`, `en`, `pinyin`,可选 `aliases`, `children` |
122
138
  | `data/cities/{ISO2}.json` | `id`, `country`, `region`, `kind`, `zh`, `en`, `pinyin`, `lat`, `lon`,可选 `subregion`, `officialId`, `aliases` |
123
139
  | `data/coverage.json` | 数据总量、名称覆盖率、逐国核验状态 |
140
+ | `data/search/{00..7f}.json` | 地名搜索索引,仅返回匹配的国家代码 |
124
141
 
125
142
  - `region` 指向一级行政区 ID;不适用或无法可靠确定一级行政区时为 `null`。
126
143
  - `subregion` 可以是所属 `children` 记录的 ID,也可能是来源名录中的下级行政区名称或代码。`id` 应视为不透明字符串。