Every capital in South, East and Southeast Asia and the Pacific

This commit is contained in:
Frederic Jung 2026-11-03 21:17:45 +01:00
parent 894307a35c
commit b4cfa2b320
No known key found for this signature in database
19 changed files with 322 additions and 14 deletions

View file

@ -42,6 +42,22 @@ const MIDEAST = {
'TM Ashgabat': [58.38, 37.95], 'AE Abu Dhabi': [54.37, 24.45], 'UZ Tashkent': [69.24, 41.30], 'YE Sanaa': [44.19, 15.37],
};
const ASIAPAC = {
'AU Canberra': [149.13, -35.28], 'BD Dhaka': [90.41, 23.81], 'BN Bandar Seri Begawan': [114.94, 4.89], 'BT Thimphu': [89.64, 27.47], 'CN Beijing': [116.40, 39.90],
'FJ Suva': [178.44, -18.14], 'FM Palikir': [158.16, 6.92], 'ID Jakarta': [106.85, -6.21], 'IN New Delhi': [77.21, 28.61], 'JP Tokyo': [139.69, 35.69],
'KH Phnom Penh': [104.92, 11.56], 'KI Tarawa': [172.98, 1.33], 'KP Pyongyang': [125.76, 39.04], 'KR Seoul': [126.98, 37.57], 'LA Vientiane': [102.63, 17.97],
'LK Sri Jayawardenepura Kotte': [79.89, 6.89], 'MH Majuro': [171.38, 7.09], 'MM Naypyidaw': [96.13, 19.76], 'MN Ulaanbaatar': [106.92, 47.92], 'MV Malé': [73.51, 4.18],
'MY Kuala Lumpur': [101.69, 3.14], 'NP Kathmandu': [85.32, 27.72], 'NR Yaren': [166.92, -0.55], 'NZ Wellington': [174.78, -41.29], 'PG Port Moresby': [147.18, -9.44],
'PH Manila': [120.98, 14.60], 'PW Ngerulmud': [134.62, 7.50], 'SB Honiara': [159.95, -9.43], 'SG Singapore': [103.82, 1.35], 'TH Bangkok': [100.50, 13.76],
'TL Dili': [125.57, -8.56], 'TO Nukuʻalofa': [-175.20, -21.14], 'TV Funafuti': [179.19, -8.52], 'VN Hanoi': [105.85, 21.03], 'VU Port Vila': [168.32, -17.73],
'WS Apia': [-171.76, -13.83],
};
test('every capital of Asia and the Pacific is a city', () => {
assert.equal(Object.keys(ASIAPAC).length, 36);
assert.deepEqual(missing(ASIAPAC), []);
});
test('every capital of the Middle East, the Caucasus and Central Asia is a city', () => {
assert.equal(Object.keys(MIDEAST).length, 24);
assert.deepEqual(missing(MIDEAST), []);

View file

@ -12,14 +12,18 @@ const EXCEPTIONS = {
// W2: countries with fewer than two consumer networks of their own, because real life has fewer.
W2: {
AD: 'Andorra Telecom is by law the only telecom operator',
BN: "Since 2019 the state's UNN owns every network in Brunei; the retail brands have none of their own",
CU: 'Cuba has one state operator (ETECSA); Cubacel is its own mobile brand',
DJ: 'Djibouti Telecom is the monopoly for homes and phones',
FM: 'FSM Telecom is the only operator on Pohnpei',
GL: 'Greenland has one operator (Tusass), for homes, phones and the cables',
KP: 'Star JV is the only network in North Korea',
MC: "Monaco Telecom is the principality's only fixed and mobile operator",
MH: 'the Marshall Islands have one telco (NTA)',
PN: 'Pitcairn has no network at all: land your own cable (#124)',
SH: 'St Helena has one operator (Sure South Atlantic)',
TM: 'Turkmentelecom is the state gateway, and TMCell the state mobile operator behind it',
TV: 'Tuvalu Telecommunications Corporation is the only telco',
YE: "In Sanaa, YemenNet is the only internet gateway; the mobile operators' data goes through it",
},
// W3: cities nobody sells transit in.
@ -50,6 +54,7 @@ const EXCEPTIONS = {
cun: 'China (#59)',
cxc: 'buys from Spectre-um, which is transit-free',
drz: 'a transit-free Tier 2',
ert: 'Russia: buys from Rostelecomedy (#70)',
etc: 'Cuba: buys from Sparkly Seabone, a Tier 1 only for games since 1.12',
ets: 'transit-free in the Gulf',
ftr: 'buys from Very-Zone, which is transit-free',
@ -63,7 +68,6 @@ const EXCEPTIONS = {
meo: 'Portuguese incumbent, peers for its own reach',
mgf: 'Russia: buys from Rostelecomedy (#70)',
npt: 'Australian (#148)',
ert: 'Russia: buys from Rostelecomedy (#70)',
opt: 'Australian, buys from SingTell (#148)',
pnt: 'Australian (#148)',
rtc: 'Russia (#70)',
@ -72,6 +76,7 @@ const EXCEPTIONS = {
spc: 'transit-free incumbent',
stb: 'satellite: peers for its own reach',
stc: 'transit-free in Saudi Arabia',
stj: 'North Korea’s only links are China Unicorn and Rostelecomedy',
teg: 'owns the land crossing; transit-free',
tim: 'buys from Sparkly Seabone, a Tier 1 only for games since 1.12',
tmt: 'buys from Sparkly Seabone, a Tier 1 only for games since 1.12',
@ -101,11 +106,11 @@ const REAL_NAMES = [
// content and clouds
'Akamai', 'Alibaba Cloud', 'Amazon', 'Amazon Web Services', 'AWS', 'Baidu', 'ByteDance', 'Cloudflare', 'Facebook', 'Fastly', 'Google', 'Mercado Libre', 'Meta', 'Microsoft', 'Netflix', 'Tencent', 'TikTok', 'VK', 'VKontakte', 'Yandex',
// eyeballs and incumbents
', ', 'A1', 'A1 Telekom Austria', 'Afghan Telecom', 'Airtel', 'AIS', 'Algérie Télécom', 'Altibox', 'Altice', 'America Movil', 'Andorra Telecom', 'Angola Cables', 'Antel', 'ASTCA', 'Aussie Broadband', 'AWCC', 'Azercell', 'Aztelekom', 'Batelco', 'Belize Telemedia', 'Bell', 'Bell Canada', 'Belong', 'Beltelecom', 'Bemobile', 'Bezeq International', 'BH Telecom', 'Bitė', 'Brisanet', 'BT', 'BTC', 'Cable & Wireless', 'Cable Bahamas', 'Cablenet', 'Crnogorski Telekom', 'Cyta', 'Earthlink', 'FL1', 'GO', 'Guyana Telephone & Telegraph', 'Hoi Internet', 'Hrvatski Telekom', 'Kazakhtelecom', 'Kcell', 'Kyrgyztelecom', 'L", ', 'Magticom', 'MCI', 'Melita', 'Moldtelecom', 'Monaco Telecom', 'Natcom', 'O!', 'Ogero', 'One Albania', 'Partner', 'Silknet', 'Slovak Telekom', 'SMART', 'Speednet', 'Syrian Telecom', 'Syriatel', 'TCI', 'Team Telecom Armenia', 'Telecom Liechtenstein', 'Telekom Slovenije', 'Telenet San Marino', 'Telesur', 'Telia Lietuva', 'Tojiktelecom', 'touch', 'Turkmentelecom', 'Ucom', 'Unitel', 'Uztelecom', 'YemenNet', 'Zain',
', ', 'A1', 'A1 Telekom Austria', 'Afghan Telecom', 'Airtel', 'AIS', 'Algérie Télécom', 'Altibox', 'Altice', 'America Movil', 'Andorra Telecom', 'Angola Cables', 'Antel', 'ASTCA', 'ATH Kiribati', 'Aussie Broadband', 'AWCC', 'Azercell', 'Aztelekom', 'Batelco', 'Belize Telemedia', 'Bell', 'Bell Canada', 'Belong', 'Beltelecom', 'Bemobile', 'Bezeq International', 'BH Telecom', 'Bhutan Telecom', 'Bitė', 'Brisanet', 'BT', 'BTC', 'Cable & Wireless', 'Cable Bahamas', 'Cablenet', 'Cenpac', 'Crnogorski Telekom', 'Cyta', 'Earthlink', 'FL1', 'FSM Telecommunications Corporation', 'GO', 'Guyana Telephone & Telegraph', 'Hoi Internet', 'Hrvatski Telekom', 'Kazakhtelecom', 'Kcell', 'Kyrgyztelecom', 'L", ', 'Lao Telecom', 'Magticom', 'MCI', 'Melita', 'MobiCom', 'Moldtelecom', 'Monaco Telecom', 'MPT', 'Natcom', 'Ncell', 'Nepal Telecom', 'O!', 'Ocean Link', 'Ogero', 'One Albania', 'Partner', 'Silknet', 'Slovak Telekom', 'SMART', 'Smart Axiata', 'Speednet', 'Star JV', 'Syrian Telecom', 'Syriatel', 'Tashi InfoComm', 'TashiCell', 'TCI', 'Team Telecom Armenia', 'Telecom Liechtenstein', 'Telecom Vanuatu', 'Telekom Slovenije', 'Telenet San Marino', 'Telesur', 'Telia Lietuva', 'Timor Telecom', 'Tojiktelecom', 'touch', 'Turkmentelecom', 'Tuvalu Telecommunications Corporation', 'Ucom', 'Unified National Networks', 'Unitel', 'Univision', 'UNN', 'Uztelecom', 'YemenNet', 'Zain',
// exchanges and data centers
'AMS-IX', 'ANIX', 'Any2', 'ArmIX', 'BALT-IX', 'BCIX', 'BHNIX', 'BY-IX', 'CIX', 'CoreSite', 'CyIX', 'DANIX', 'DE-CIX', 'DigiCo', 'Digital Realty', 'Equinix', 'France-IX', 'GREX', 'HIX', 'Interxion', 'IRAQ-IXP', 'iseek', 'IX.br', 'ix.kw', 'IXP-HN', 'IXP.ge', 'IXP.mk', 'JPIX', 'KAZ-GOV-IX', 'KG-IX', 'KIVIX', 'LebIX', 'LINX', 'Manama IX', 'MD-IX', 'MIXP', 'NAPAfrica', 'NetIX', 'NEXTDC', 'NIX', 'NIX.SK', 'NIXA', 'NL-ix', 'RegPEX', 'SIX', 'SIX.SK', 'SKNIX', 'SNS-IX', 'SUR-IX', 'SVGIX', 'Tehran IX', 'Telehouse', 'TJ-IX',
'AMS-IX', 'ANIX', 'Any2', 'ArmIX', 'BALT-IX', 'BCIX', 'BHNIX', 'Borneo-IX', 'btIX', 'BY-IX', 'CIX', 'CNX', 'CoreSite', 'CyIX', 'DANIX', 'DE-CIX', 'DigiCo', 'Digital Realty', 'Equinix', 'France-IX', 'GREX', 'HIX', 'Interxion', 'IRAQ-IXP', 'iseek', 'IX.br', 'ix.kw', 'IXP-HN', 'IXP.ge', 'IXP.mk', 'JPIX', 'KAZ-GOV-IX', 'KG-IX', 'KIVIX', 'LebIX', 'LINX', 'Manama IX', 'MD-IX', 'MISPA-IXP', 'MIXP', 'NAPAfrica', 'NetIX', 'NEXTDC', 'NIX', 'NIX.SK', 'NIXA', 'NL-ix', 'npIX', 'RegPEX', 'SIX', 'SIX.SK', 'SKNIX', 'SNS-IX', 'SUR-IX', 'SVGIX', 'Tehran IX', 'Telehouse', 'TJ-IX', 'VIX.VU', 'VNIX-HN', 'WIX-NZ', 'WLG-IX',
// cables
'2Africa', 'Amitié', 'BDSNi', 'CADMOS', 'CARCIP', 'Darwin-Jakarta-Singapore Cable', 'Deep Blue One', 'Dunant', 'Eastern Caribbean Fiber System', 'EllaLink', 'Epic Malta-Sicily Cable System', 'Equiano', 'FALCON', 'Fibralink', 'GO-1', 'Grace Hopper', 'Greenland Connect', 'Greenland Connect North', 'Hibernia Express', 'Jupiter', 'MAREA', 'MedNautilus', 'Melita 1', 'North West Cable System', 'PEACE', 'SEA-ME-WE 6', 'SG-SCS', 'Southern Caribbean Fiber', 'UGARIT', 'X-Link',
'2Africa', 'Amitié', 'BDSNi', 'CADMOS', 'CARCIP', 'Darwin-Jakarta-Singapore Cable', 'Deep Blue One', 'Dunant', 'East Micronesia Cable', 'Eastern Caribbean Fiber System', 'EllaLink', 'Epic Malta-Sicily Cable System', 'Equiano', 'FALCON', 'Fibralink', 'GO-1', 'Grace Hopper', 'Greenland Connect', 'Greenland Connect North', 'Hibernia Express', 'ICN1', 'Interchange Cable Network 1', 'Jupiter', 'MAREA', 'MedNautilus', 'Melita 1', 'North West Cable System', 'PEACE', 'SEA-ME-WE 6', 'SG-SCS', 'Southern Caribbean Fiber', 'TLSSC', 'Tuvalu Vaka Cable', 'UGARIT', 'Vaka', 'X-Link',
// cable ships, their operators and maintenance clubs
'ACMA', 'ASEAN Explorer', 'ASEAN Protector', 'ASEAN Restorer', 'Cable Innovator', 'Cable Retriever', 'Global Marine', 'Léon Thévenin', 'MECMA', 'Orange Marine', 'Pierre de Fermat', 'René Descartes', 'SEAIOCMA', 'Sophie Germain', 'Sovereign', 'Wave Sentinel', 'Yokohama Zone',
// vendors