The dataset viewer is not available for this split.
Error code: StreamingRowsError
Exception: CastError
Message: Couldn't cast
built: timestamp[s]
counts: struct<total: int64, AF: int64, AL: int64, AM: int64, AR: int64, AT: int64, AU: int64, AZ: int64, BA (... 954 chars omitted)
child 0, total: int64
child 1, AF: int64
child 2, AL: int64
child 3, AM: int64
child 4, AR: int64
child 5, AT: int64
child 6, AU: int64
child 7, AZ: int64
child 8, BA: int64
child 9, BD: int64
child 10, BE: int64
child 11, BF: int64
child 12, BG: int64
child 13, BO: int64
child 14, BR: int64
child 15, BY: int64
child 16, CA: int64
child 17, CH: int64
child 18, CI: int64
child 19, CL: int64
child 20, CM: int64
child 21, CN: int64
child 22, CO: int64
child 23, CZ: int64
child 24, DE: int64
child 25, DK: int64
child 26, DZ: int64
child 27, EE: int64
child 28, EG: int64
child 29, ES: int64
child 30, FI: int64
child 31, FR: int64
child 32, GB: int64
child 33, GE: int64
child 34, GH: int64
child 35, GR: int64
child 36, HR: int64
child 37, HU: int64
child 38, ID: int64
child 39, IE: int64
child 40, IN: int64
child 41, IR: int64
child 42, IT: int64
child 43, JP: int64
child 44, KE: int64
child 45, KG: int64
child 46, KH: int64
child 47, KR: int64
child 48, KZ: int64
child 49, LB: int64
child 50, LK: int64
child 51, LT: int64
child 52, LV: int64
child 53, MA: int64
child 54, MD: int64
child 55, ME: int64
child 56, MG: int64
child 57, MK: int64
child 58, MM: int64
child 59, MX: int64
child 60, MY: int64
child 61,
...
: int64
child 184, QA: int64
child 185, RE: int64
child 186, RO: int64
child 187, RS: int64
child 188, RU: int64
child 189, RW: int64
child 190, SA: int64
child 191, SB: int64
child 192, SC: int64
child 193, SD: int64
child 194, SE: int64
child 195, SG: int64
child 196, SH: int64
child 197, SI: int64
child 198, SK: int64
child 199, SL: int64
child 200, SM: int64
child 201, SN: int64
child 202, SO: int64
child 203, SR: int64
child 204, SS: int64
child 205, ST: int64
child 206, SV: int64
child 207, SX: int64
child 208, SY: int64
child 209, SZ: int64
child 210, TA: int64
child 211, TC: int64
child 212, TD: int64
child 213, TF: int64
child 214, TG: int64
child 215, TH: int64
child 216, TJ: int64
child 217, TK: int64
child 218, TL: int64
child 219, TM: int64
child 220, TN: int64
child 221, TO: int64
child 222, TR: int64
child 223, TT: int64
child 224, TV: int64
child 225, TW: int64
child 226, TZ: int64
child 227, UA: int64
child 228, UG: int64
child 229, UM: int64
child 230, US: int64
child 231, UY: int64
child 232, UZ: int64
child 233, VA: int64
child 234, VC: int64
child 235, VE: int64
child 236, VG: int64
child 237, VI: int64
child 238, VN: int64
child 239, VU: int64
child 240, WF: int64
child 241, WS: int64
child 242, XK: int64
child 243, YE: int64
child 244, YT: int64
child 245, ZA: int64
child 246, ZM: int64
child 247, ZW: int64
test_countries: null
to
{'built': Value('timestamp[s]'), 'release': Value('string'), 's_version': Value('string'), 'test_countries': Value('null'), 'per_country': {'AC': Value('int64'), 'AD': Value('int64'), 'AE': Value('int64'), 'AF': Value('int64'), 'AG': Value('int64'), 'AI': Value('int64'), 'AL': Value('int64'), 'AM': Value('int64'), 'AO': Value('int64'), 'AR': Value('int64'), 'AS': Value('int64'), 'AT': Value('int64'), 'AU': Value('int64'), 'AW': Value('int64'), 'AX': Value('int64'), 'AZ': Value('int64'), 'BA': Value('int64'), 'BB': Value('int64'), 'BD': Value('int64'), 'BE': Value('int64'), 'BF': Value('int64'), 'BG': Value('int64'), 'BH': Value('int64'), 'BI': Value('int64'), 'BJ': Value('int64'), 'BL': Value('int64'), 'BM': Value('int64'), 'BN': Value('int64'), 'BO': Value('int64'), 'BQ': Value('int64'), 'BR': Value('int64'), 'BS': Value('int64'), 'BT': Value('int64'), 'BW': Value('int64'), 'BY': Value('int64'), 'BZ': Value('int64'), 'CA': Value('int64'), 'CC': Value('int64'), 'CD': Value('int64'), 'CF': Value('int64'), 'CG': Value('int64'), 'CH': Value('int64'), 'CI': Value('int64'), 'CK': Value('int64'), 'CL': Value('int64'), 'CM': Value('int64'), 'CN': Value('int64'), 'CO': Value('int64'), 'CR': Value('int64'), 'CU': Value('int64'), 'CV': Value('int64'), 'CW': Value('int64'), 'CX': Value('int64'), 'CY': Value('int64'), 'CZ': Value('int64'), 'DE': Value('int64'), 'DJ': Value('int64'), 'DK': Value('int64'), 'DM': Value('int64'), 'DO': Value('int64'), 'DZ': Value('int64'), 'EC': Value('int64
...
t64'), 'GH': Value('int64'), 'GR': Value('int64'), 'HR': Value('int64'), 'HU': Value('int64'), 'ID': Value('int64'), 'IE': Value('int64'), 'IN': Value('int64'), 'IR': Value('int64'), 'IT': Value('int64'), 'JP': Value('int64'), 'KE': Value('int64'), 'KG': Value('int64'), 'KH': Value('int64'), 'KR': Value('int64'), 'KZ': Value('int64'), 'LB': Value('int64'), 'LK': Value('int64'), 'LT': Value('int64'), 'LV': Value('int64'), 'MA': Value('int64'), 'MD': Value('int64'), 'ME': Value('int64'), 'MG': Value('int64'), 'MK': Value('int64'), 'MM': Value('int64'), 'MX': Value('int64'), 'MY': Value('int64'), 'NE': Value('int64'), 'NG': Value('int64'), 'NI': Value('int64'), 'NL': Value('int64'), 'NO': Value('int64'), 'NP': Value('int64'), 'NZ': Value('int64'), 'PE': Value('int64'), 'PH': Value('int64'), 'PK': Value('int64'), 'PL': Value('int64'), 'PR': Value('int64'), 'PT': Value('int64'), 'RO': Value('int64'), 'RS': Value('int64'), 'RU': Value('int64'), 'SE': Value('int64'), 'SI': Value('int64'), 'SK': Value('int64'), 'SN': Value('int64'), 'SY': Value('int64'), 'TG': Value('int64'), 'TH': Value('int64'), 'TJ': Value('int64'), 'TL': Value('int64'), 'TR': Value('int64'), 'TW': Value('int64'), 'UA': Value('int64'), 'US': Value('int64'), 'UZ': Value('int64'), 'VE': Value('int64'), 'XK': Value('int64'), 'YE': Value('int64'), 'ZA': Value('int64')}, 'totals': {'places': Value('int64'), 'places_distinct_ids': Value('int64'), 'places_tiles_deepest_zoom': Value('int64'), 'divisions': Value('int64')}}
because column names don't match
Traceback: Traceback (most recent call last):
File "/src/services/worker/src/worker/utils.py", line 147, in get_rows_or_raise
return get_rows(
dataset=dataset,
...<4 lines>...
column_names=column_names,
)
File "/src/libs/libcommon/src/libcommon/utils.py", line 272, in decorator
return func(*args, **kwargs)
File "/src/services/worker/src/worker/utils.py", line 127, in get_rows
rows_plus_one = list(itertools.islice(safe_iter(ds, dataset=dataset), rows_max_number + 1))
File "/src/services/worker/src/worker/utils.py", line 483, in safe_iter
yield from ds.decode(False) if ds.features else ds
File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 2951, in __iter__
for key, example in ex_iterable:
^^^^^^^^^^^
File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 2461, in __iter__
for key, pa_table in self._iter_arrow():
~~~~~~~~~~~~~~~~^^
File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 2486, in _iter_arrow
for key, pa_table in self.ex_iterable._iter_arrow():
~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^
File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 547, in _iter_arrow
for key, pa_table in iterator:
^^^^^^^^
File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 430, in _iter_arrow
for key, pa_table in self.generate_tables_fn(**gen_kwags):
~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^
File "/usr/local/lib/python3.14/site-packages/datasets/packaged_modules/json/json.py", line 343, in _generate_tables
self._cast_table(pa_table, json_field_paths=json_field_paths),
~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.14/site-packages/datasets/packaged_modules/json/json.py", line 132, in _cast_table
pa_table = table_cast(pa_table, self.info.features.arrow_schema)
File "/usr/local/lib/python3.14/site-packages/datasets/table.py", line 2378, in table_cast
return cast_table_to_schema(table, schema)
File "/usr/local/lib/python3.14/site-packages/datasets/table.py", line 2306, in cast_table_to_schema
raise CastError(
...<3 lines>...
)
datasets.table.CastError: Couldn't cast
built: timestamp[s]
counts: struct<total: int64, AF: int64, AL: int64, AM: int64, AR: int64, AT: int64, AU: int64, AZ: int64, BA (... 954 chars omitted)
child 0, total: int64
child 1, AF: int64
child 2, AL: int64
child 3, AM: int64
child 4, AR: int64
child 5, AT: int64
child 6, AU: int64
child 7, AZ: int64
child 8, BA: int64
child 9, BD: int64
child 10, BE: int64
child 11, BF: int64
child 12, BG: int64
child 13, BO: int64
child 14, BR: int64
child 15, BY: int64
child 16, CA: int64
child 17, CH: int64
child 18, CI: int64
child 19, CL: int64
child 20, CM: int64
child 21, CN: int64
child 22, CO: int64
child 23, CZ: int64
child 24, DE: int64
child 25, DK: int64
child 26, DZ: int64
child 27, EE: int64
child 28, EG: int64
child 29, ES: int64
child 30, FI: int64
child 31, FR: int64
child 32, GB: int64
child 33, GE: int64
child 34, GH: int64
child 35, GR: int64
child 36, HR: int64
child 37, HU: int64
child 38, ID: int64
child 39, IE: int64
child 40, IN: int64
child 41, IR: int64
child 42, IT: int64
child 43, JP: int64
child 44, KE: int64
child 45, KG: int64
child 46, KH: int64
child 47, KR: int64
child 48, KZ: int64
child 49, LB: int64
child 50, LK: int64
child 51, LT: int64
child 52, LV: int64
child 53, MA: int64
child 54, MD: int64
child 55, ME: int64
child 56, MG: int64
child 57, MK: int64
child 58, MM: int64
child 59, MX: int64
child 60, MY: int64
child 61,
...
: int64
child 184, QA: int64
child 185, RE: int64
child 186, RO: int64
child 187, RS: int64
child 188, RU: int64
child 189, RW: int64
child 190, SA: int64
child 191, SB: int64
child 192, SC: int64
child 193, SD: int64
child 194, SE: int64
child 195, SG: int64
child 196, SH: int64
child 197, SI: int64
child 198, SK: int64
child 199, SL: int64
child 200, SM: int64
child 201, SN: int64
child 202, SO: int64
child 203, SR: int64
child 204, SS: int64
child 205, ST: int64
child 206, SV: int64
child 207, SX: int64
child 208, SY: int64
child 209, SZ: int64
child 210, TA: int64
child 211, TC: int64
child 212, TD: int64
child 213, TF: int64
child 214, TG: int64
child 215, TH: int64
child 216, TJ: int64
child 217, TK: int64
child 218, TL: int64
child 219, TM: int64
child 220, TN: int64
child 221, TO: int64
child 222, TR: int64
child 223, TT: int64
child 224, TV: int64
child 225, TW: int64
child 226, TZ: int64
child 227, UA: int64
child 228, UG: int64
child 229, UM: int64
child 230, US: int64
child 231, UY: int64
child 232, UZ: int64
child 233, VA: int64
child 234, VC: int64
child 235, VE: int64
child 236, VG: int64
child 237, VI: int64
child 238, VN: int64
child 239, VU: int64
child 240, WF: int64
child 241, WS: int64
child 242, XK: int64
child 243, YE: int64
child 244, YT: int64
child 245, ZA: int64
child 246, ZM: int64
child 247, ZW: int64
test_countries: null
to
{'built': Value('timestamp[s]'), 'release': Value('string'), 's_version': Value('string'), 'test_countries': Value('null'), 'per_country': {'AC': Value('int64'), 'AD': Value('int64'), 'AE': Value('int64'), 'AF': Value('int64'), 'AG': Value('int64'), 'AI': Value('int64'), 'AL': Value('int64'), 'AM': Value('int64'), 'AO': Value('int64'), 'AR': Value('int64'), 'AS': Value('int64'), 'AT': Value('int64'), 'AU': Value('int64'), 'AW': Value('int64'), 'AX': Value('int64'), 'AZ': Value('int64'), 'BA': Value('int64'), 'BB': Value('int64'), 'BD': Value('int64'), 'BE': Value('int64'), 'BF': Value('int64'), 'BG': Value('int64'), 'BH': Value('int64'), 'BI': Value('int64'), 'BJ': Value('int64'), 'BL': Value('int64'), 'BM': Value('int64'), 'BN': Value('int64'), 'BO': Value('int64'), 'BQ': Value('int64'), 'BR': Value('int64'), 'BS': Value('int64'), 'BT': Value('int64'), 'BW': Value('int64'), 'BY': Value('int64'), 'BZ': Value('int64'), 'CA': Value('int64'), 'CC': Value('int64'), 'CD': Value('int64'), 'CF': Value('int64'), 'CG': Value('int64'), 'CH': Value('int64'), 'CI': Value('int64'), 'CK': Value('int64'), 'CL': Value('int64'), 'CM': Value('int64'), 'CN': Value('int64'), 'CO': Value('int64'), 'CR': Value('int64'), 'CU': Value('int64'), 'CV': Value('int64'), 'CW': Value('int64'), 'CX': Value('int64'), 'CY': Value('int64'), 'CZ': Value('int64'), 'DE': Value('int64'), 'DJ': Value('int64'), 'DK': Value('int64'), 'DM': Value('int64'), 'DO': Value('int64'), 'DZ': Value('int64'), 'EC': Value('int64
...
t64'), 'GH': Value('int64'), 'GR': Value('int64'), 'HR': Value('int64'), 'HU': Value('int64'), 'ID': Value('int64'), 'IE': Value('int64'), 'IN': Value('int64'), 'IR': Value('int64'), 'IT': Value('int64'), 'JP': Value('int64'), 'KE': Value('int64'), 'KG': Value('int64'), 'KH': Value('int64'), 'KR': Value('int64'), 'KZ': Value('int64'), 'LB': Value('int64'), 'LK': Value('int64'), 'LT': Value('int64'), 'LV': Value('int64'), 'MA': Value('int64'), 'MD': Value('int64'), 'ME': Value('int64'), 'MG': Value('int64'), 'MK': Value('int64'), 'MM': Value('int64'), 'MX': Value('int64'), 'MY': Value('int64'), 'NE': Value('int64'), 'NG': Value('int64'), 'NI': Value('int64'), 'NL': Value('int64'), 'NO': Value('int64'), 'NP': Value('int64'), 'NZ': Value('int64'), 'PE': Value('int64'), 'PH': Value('int64'), 'PK': Value('int64'), 'PL': Value('int64'), 'PR': Value('int64'), 'PT': Value('int64'), 'RO': Value('int64'), 'RS': Value('int64'), 'RU': Value('int64'), 'SE': Value('int64'), 'SI': Value('int64'), 'SK': Value('int64'), 'SN': Value('int64'), 'SY': Value('int64'), 'TG': Value('int64'), 'TH': Value('int64'), 'TJ': Value('int64'), 'TL': Value('int64'), 'TR': Value('int64'), 'TW': Value('int64'), 'UA': Value('int64'), 'US': Value('int64'), 'UZ': Value('int64'), 'VE': Value('int64'), 'XK': Value('int64'), 'YE': Value('int64'), 'ZA': Value('int64')}, 'totals': {'places': Value('int64'), 'places_distinct_ids': Value('int64'), 'places_tiles_deepest_zoom': Value('int64'), 'divisions': Value('int64')}}
because column names don't matchNeed help to make the dataset viewer work? Make sure to review how to configure the dataset viewer, and open a discussion for direct support.
World gazetteer
Every country, administrative division and settlement in PlaceDB, the CC0 gazetteer built from Wikidata by mindstellar/location-data, mirrored by milleleaf/world-gazetteer. It is checked weekly and copied when a new PlaceDB release appears. Every file, row and field is kept.
Where things are. The archive is on Kaggle: one dataset per PlaceDB release, helenkwok/world-gazetteer-<release>,
holding the release exactly as delivered plus the files below, every file checked against PlaceDB's own sha256 list. The
small Kaggle dataset helenkwok/world-gazetteer and releases.json list every release and its archive. Hugging Face holds
only what a map needs, for the latest release:
| File | Holds |
|---|---|
places.parquet |
GeoParquet, one point per settlement, every field PlaceDB gives a settlement |
divisions.parquet |
GeoParquet, every administrative division (a point where it has coordinates), every field |
places.pmtiles |
Vector tiles, layer places, every settlement. Cities of 5 million or more from zoom 2, then by population down to zoom 10, where every settlement is present (also those with no population) |
api/v1/countries.json |
PlaceDB's country list, as published |
api/v1/ac/<CC>/<prefix>.json |
PlaceDB's prefix files for search as you type, as published; api/v1/index.json holds their sha256 |
LIMITATIONS.md |
PlaceDB's own account of what the dataset does not do, at this release |
index.json, releases.json |
This release's settlements per country (per_country) and the counts the publish gate checks; every release published so far |
The Kaggle archive of a release holds PlaceDB's own files as delivered. They are uploaded as two tars, which Kaggle shows
unpacked as the folders release/ and api/; downloading the dataset gives them back as folders.
| File | Holds |
|---|---|
release.tar |
data/<CC>.ndjson, json/<CC>.json, csv/<CC>.csv for every country (an uncompressed tar) |
api.tar |
the placedb.org API files: api/v1/index.json (their sha256), countries.json, changes.json, ac/, cities/, iso/, near/, regions/ (an uncompressed tar of about 143,000 files) |
manifest.json |
PlaceDB's checksum list: every per-country file's sha256 and size |
latest.json, LICENSE, changes.json, changes.ndjson |
the release's name and date, its CC0 licence, and what changed since the release before |
plus LIMITATIONS.md and the derived files above. A release's Kaggle archive is never changed after it is made, so its derived files come from
the first bake of that release; Hugging Face carries the current bake's. If you have a tar rather than the folder, extract it with
tar -xf release.tar (or tar -xf api.tar). Then check the files against manifest.json (or api/v1/index.json), for example from inside release/:
python3 -c "import hashlib,json;m=json.load(open('../manifest.json'));print(all(hashlib.sha256(open(c['files'][k],'rb').read()).hexdigest()==c['sha256'][k] for c in m['countries'] for k in c['files']))".
In the tiles, a place nearer a pole than 85.05 degrees sits at that latitude, since web maps stop there; its true
latitude and longitude are fields.
Known gaps
From PlaceDB's LIMITATIONS.md, which is worth reading before using the data:
- Settlements with no coordinates are left out: about 883,000 of them, two thirds China's administrative villages, most of the rest in India, Russia, Uganda and Myanmar.
- Names in Arabic script are not transliterated, so about 164,000 settlements whose only names are in Arabic (or Hebrew) script have no usable name and are left out. Cyrillic, Greek, Georgian, Armenian and Chinese are transliterated.
- Vietnam is undercounted: Wikidata files many of its towns under "former subdivisions of Vietnam".
Sources and terms
Data from PlaceDB (mindstellar/location-data), CC0, built from Wikidata (CC0): placedb.org, github.com/mindstellar/location-data, released under CC0 1.0; Wikidata is also CC0. Only PlaceDB's published data is copied here, not its code (which is GPL-3.0). Provided as is, with no warranty, not endorsed by PlaceDB or Wikidata. A wrong place is best fixed in its Wikidata item.
- Downloads last month
- 38