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

@ -110,4 +110,14 @@ LANDS_LL.push(
LANDS_LL.push(
{id:'bhr',hide:true,ll:[[50.19,26.53],[50.99,26.53],[50.99,25.93],[50.19,25.93]]},
);
// Brunei, Timor-Leste and the Pacific capitals, each its own island
LANDS_LL.push(
{id:'brn',hide:true,ll:[[114.54,5.20],[115.34,5.20],[115.34,4.60],[114.54,4.60]]},
{id:'tim',hide:true,ll:[[125.17,-8.26],[125.97,-8.26],[125.97,-8.86],[125.17,-8.86]]},
{id:'kir',hide:true,ll:[[172.58,1.63],[173.38,1.63],[173.38,1.03],[172.58,1.03]]},
{id:'pnp',hide:true,ll:[[157.76,7.22],[158.56,7.22],[158.56,6.62],[157.76,6.62]]},
{id:'nru',hide:true,ll:[[166.52,-0.25],[167.32,-0.25],[167.32,-0.85],[166.52,-0.85]]},
{id:'tuv',hide:true,ll:[[178.80,-8.22],[179.60,-8.22],[179.60,-8.82],[178.80,-8.82]]},
{id:'vut',hide:true,ll:[[167.92,-17.43],[168.72,-17.43],[168.72,-18.03],[167.92,-18.03]]},
);
const LANDS=LANDS_LL.map(l=>({id:l.id,hide:true,pts:l.ll.map(q=>proj(q[0],q[1]))}));

View file

@ -9,4 +9,11 @@ COAST_LL.push([[-61.72,17.04],[-61.75,17],[-61.86,17.01],[-61.88,17.06],[-61.89,
COAST_LL.push([[14.57,35.85],[14.53,35.82],[14.44,35.82],[14.35,35.87],[14.35,35.98],[14.45,35.96],[14.54,35.89]]);
// Bahrain, from the same Natural Earth 1:50m land.
COAST_LL.push([[50.61,25.88],[50.58,25.81],[50.54,25.83],[50.47,25.97],[50.49,26.06],[50.45,26.19],[50.47,26.23],[50.56,26.25],[50.59,26.24],[50.56,26.2],[50.61,26.12],[50.62,26]]);
// Timor, Tarawa, Pohnpei, Nauru, Funafuti and Efate, from the same Natural Earth 1:50m land.
COAST_LL.push([[127.3,-8.42],[127.12,-8.58],[126.91,-8.72],[126.79,-8.76],[126.67,-8.78],[126.57,-8.83],[126.49,-8.91],[126.38,-8.96],[126.27,-8.97],[126.17,-9],[126.07,-9.04],[125.95,-9.12],[125.9,-9.13],[125.84,-9.13],[125.74,-9.16],[125.41,-9.28],[125.21,-9.4],[125,-9.56],[124.96,-9.67],[124.84,-9.76],[124.71,-9.91],[124.6,-9.99],[124.51,-10.09],[124.43,-10.15],[124.33,-10.17],[124.17,-10.18],[123.97,-10.3],[123.86,-10.34],[123.75,-10.35],[123.65,-10.31],[123.61,-10.27],[123.61,-10.22],[123.65,-10.17],[123.69,-10.13],[123.72,-10.08],[123.6,-10.01],[123.59,-9.97],[123.63,-9.84],[123.67,-9.71],[123.71,-9.62],[123.88,-9.45],[123.98,-9.37],[124.2,-9.26],[124.57,-9.16],[124.65,-9.12],[124.71,-9.06],[124.89,-8.97],[125.03,-8.86],[125.12,-8.71],[125.18,-8.65],[125.32,-8.59],[125.38,-8.58],[125.81,-8.49],[125.91,-8.49],[126.17,-8.49],[126.53,-8.47],[126.62,-8.46],[126.73,-8.42],[126.85,-8.38],[126.9,-8.34],[126.97,-8.32],[127.06,-8.35],[127.22,-8.37],[127.26,-8.39]]);
COAST_LL.push([[173.04,1.34],[173.01,1.34],[173.03,1.36],[173.14,1.38],[173.15,1.39],[173.17,1.38],[173.17,1.36],[173.16,1.36],[173.11,1.36],[173.06,1.35]]);
COAST_LL.push([[158.31,6.81],[158.26,6.79],[158.18,6.8],[158.16,6.88],[158.13,6.9],[158.13,6.94],[158.19,6.98],[158.3,6.95],[158.33,6.89],[158.31,6.85]]);
COAST_LL.push([[166.96,-0.52],[166.94,-0.55],[166.92,-0.55],[166.91,-0.52],[166.91,-0.5],[166.94,-0.49],[166.96,-0.5]]);
COAST_LL.push([[179.22,-8.52],[179.2,-8.54],[179.2,-8.51],[179.2,-8.49],[179.2,-8.47],[179.21,-8.49],[179.22,-8.51]]);
COAST_LL.push([[168.45,-17.54],[168.54,-17.68],[168.58,-17.7],[168.52,-17.8],[168.4,-17.81],[168.25,-17.78],[168.31,-17.75],[168.28,-17.71],[168.23,-17.7],[168.18,-17.72],[168.16,-17.71],[168.19,-17.64],[168.27,-17.55],[168.3,-17.55],[168.32,-17.54],[168.34,-17.55]]);
const COAST=COAST_LL.map(poly=>poly.map(q=>proj(q[0],q[1])));

View file

@ -57,6 +57,7 @@ const CITY_LL={
"bue":[-58.38, -34.6],
"buh":[26.1, 44.43],
"bvb":[-60.67,2.82],
"bwn":[114.94,4.9],
"cac":[-53.46,-24.96],
"cae":[-81.03,34.0],
"cai":[31.24,30.04],
@ -90,6 +91,7 @@ const CITY_LL={
"dar":[39.28,-6.79],
"del":[77.21, 28.61],
"den":[-104.99,39.74],
"dil":[125.57,-8.56],
"dkr":[-17.45,14.69],
"dks":[80.65,73.51],
"dla":[9.7,4.05],
@ -115,11 +117,13 @@ const CITY_LL={
"fft":[-84.87,38.2],
"fih":[15.27,-4.33],
"fln":[-48.55,-27.6],
"fnj":[125.76,39.04],
"for":[-38.54, -3.73],
"fra":[8.68,50.11],
"fru":[74.59,42.87],
"fuj":[56.15,25.07],
"fuk":[130.4,33.59],
"fun":[179.21,-8.51],
"gbe":[25.91,-24.65],
"gdl":[-103.35,20.67],
"gdx":[150.8,59.57],
@ -130,6 +134,7 @@ const CITY_LL={
"gyd":[49.87,40.41],
"gyn":[-49.25,-16.69],
"ham":[9.99,53.55],
"han":[105.85,21.03],
"har":[-76.88,40.27],
"hav":[-82.37,23.09],
"hba":[147.25,-42.85],
@ -146,6 +151,7 @@ const CITY_LL={
"icn":[126.98,37.57],
"igu":[-54.59,-25.55],
"ind":[-86.16,39.77],
"inu":[166.93,-0.52],
"isb":[73.05,33.68],
"ist":[28.98, 41.01],
"ivc":[168.35,-46.41],
@ -167,6 +173,7 @@ const CITY_LL={
"kiv":[28.86,47.01],
"kla":[32.58,0.35],
"krs":[8.0,58.15],
"ktm":[85.32,27.72],
"kul":[101.69, 3.14],
"kwi":[47.99,29.38],
"kyv":[30.52,50.45],
@ -225,6 +232,7 @@ const CITY_LL={
"nqz":[71.45,51.17],
"nuk":[-51.72,64.18],
"nyc":[-74.0,40.71],
"nyt":[96.08,19.76],
"okc":[-97.52,35.47],
"olm":[-122.9,47.04],
"ome":[-165.38,64.52],
@ -235,6 +243,7 @@ const CITY_LL={
"pan":[-79.52, 8.98],
"pap":[-72.34,18.54],
"par":[2.35,48.86],
"pbh":[89.64,27.47],
"pbm":[-55.2,5.85],
"pcn":[-130.1,-25.07],
"pdl":[-25.67,37.74],
@ -246,6 +255,8 @@ const CITY_LL={
"pkc":[158.65,53.02],
"pmo":[13.36,38.12],
"pmw":[-48.33,-10.18],
"pnh":[104.92,11.56],
"pni":[158.16,6.92],
"poa":[-51.23,-30.03],
"pom":[147.18,-9.44],
"pos":[-61.48,10.66],
@ -324,20 +335,25 @@ const CITY_LL={
"top":[-95.68,39.05],
"tor":[-79.38,43.65],
"tpe":[121.56, 25.03],
"trw":[173.03,1.35],
"tsv":[146.82,-19.26],
"ttn":[-74.76,40.22],
"tun":[10.18,36.81],
"uio":[-78.47,-0.18],
"uln":[106.91,47.89],
"uus":[142.74,46.96],
"van":[-123.12,49.28],
"vdz":[9.52,47.14],
"vie":[16.37, 48.21],
"vix":[-40.31,-20.32],
"vli":[168.32,-17.73],
"vno":[25.28,54.69],
"vte":[102.63,17.98],
"vvo":[131.89,43.12],
"was":[-77.04,38.91],
"waw":[21.01, 52.23],
"wdh":[17.08,-22.56],
"wlg":[174.8,-41.2],
"yeg":[-113.49,53.55],
"yfb":[-68.52,63.75],
"yfc":[-66.64,45.96],

View file

@ -363,6 +363,23 @@ const CITIES=[
{id:'bah',name:'Manama',x:0,y:0,land:'bhr',reg:'AS',cc:'BH',capital:true,P:70,ix:'Pearl-IX',dc:'Pearl Diver DC',note:tr('cities.a_cloud_region_on_an_island')},
{id:'esb',name:'Ankara',x:0,y:0,land:'eu',reg:'AS',cc:'TR',capital:true,P:350,ix:'Simit-IX',dc:'Mausoleum Hill Colo'},
{id:'isb',name:'Islamabad',x:0,y:0,land:'eu',reg:'AS',cc:'PK',capital:true,P:150,ix:'',dc:'Margalla Hills DC'},
// South, East and Southeast Asia and the Pacific: every capital, and Hanoi and Wellington
{id:'pbh',name:'Thimphu',x:0,y:0,land:'eu',reg:'AS',cc:'BT',capital:true,P:15,ix:'Ema-Datshi-IX',dc:'Dzong Colo',note:tr('cities.bhutan_peers_at_home_and_crosses')},
{id:'ktm',name:'Kathmandu',x:0,y:0,land:'eu',reg:'AS',cc:'NP',capital:true,P:150,ix:'Momo-IX',dc:'Everest Base Rack',note:tr('cities.a_second_way_out_over_the')},
{id:'bwn',name:'Bandar Seri Begawan',x:0,y:0,land:'brn',reg:'AS',cc:'BN',capital:true,P:25,ix:'Hornbill-IX',dc:'Water Village DC',note:tr('cities.one_state_company_owns_every_wire')},
{id:'pnh',name:'Phnom Penh',x:0,y:0,land:'eu',reg:'AS',cc:'KH',capital:true,P:120,ix:'Amok-IX',dc:'Riverside Colo'},
{id:'vte',name:'Vientiane',x:0,y:0,land:'eu',reg:'AS',cc:'LA',capital:true,P:50,ix:'',dc:'Patuxai Rack',note:tr('cities.no_exchange_so_lao_traffic_detours')},
{id:'uln',name:'Ulaanbaatar',x:0,y:0,land:'eu',reg:'AS',cc:'MN',capital:true,P:60,ix:'Buuz-IX',dc:'Ger District DC',note:tr('cities.no_sea_three_exchanges_and_barely')},
{id:'nyt',name:'Naypyidaw',x:0,y:0,land:'eu',reg:'AS',cc:'MM',capital:true,P:150,ix:'',dc:'Twenty-Lane Highway Colo',note:tr('cities.a_capital_built_from_scratch_with')},
{id:'fnj',name:'Pyongyang',x:0,y:0,land:'eu',reg:'AS',cc:'KP',capital:true,P:2,ix:'',dc:'Ryugyong Hotel Rack',note:tr('cities.the_whole_country_is_one_network')},
{id:'dil',name:'Dili',x:0,y:0,land:'tim',reg:'AS',cc:'TL',capital:true,P:15,ix:'',dc:'Cristo Rei Colo',note:tr('cities.timor_leste_s_first_cable_switched_on')},
{id:'trw',name:'South Tarawa',x:0,y:0,land:'kir',reg:'OC',cc:'KI',capital:true,P:3,ix:'',dc:'Atoll Hut DC',note:tr('cities.tarawa_s_first_cable_came_in')},
{id:'pni',name:'Palikir',x:0,y:0,land:'pnp',reg:'OC',cc:'FM',capital:true,P:2,ix:'',dc:'Nan Madol Rack'},
{id:'inu',name:'Yaren',x:0,y:0,land:'nru',reg:'OC',cc:'NR',capital:true,P:0.5,ix:'',dc:'Phosphate Pit DC',note:tr('cities.twelve_thousand_people_and_their_first')},
{id:'fun',name:'Funafuti',x:0,y:0,land:'tuv',reg:'OC',cc:'TV',capital:true,P:0.4,ix:'',dc:'Runway Rack',note:tr('cities.when_the_cable_arrived_the_whole')},
{id:'vli',name:'Port Vila',x:0,y:0,land:'vut',reg:'OC',cc:'VU',capital:true,P:6,ix:'Kava-IX',dc:'Kava Bar Colo'},
{id:'han',name:'Hanoi',x:0,y:0,land:'eu',reg:'AS',cc:'VN',capital:true,P:300,ix:'Bun-Cha-IX',dc:'Old Quarter Colo'},
{id:'wlg',name:'Wellington',x:0,y:0,land:'nz',reg:'OC',cc:'NZ',capital:true,P:40,ix:'Windy-Welly-IX',dc:'Beehive Basement DC'},
];
// Display-only nudges for cities that sit on top of each other at map scale; distances still use real lon/lat.
const CITY_NUDGE={

View file

@ -62,6 +62,7 @@ const CITY_PDB={
bue:[28,372,1357],
buh:[23,289,1424],
bvb:[3,6,9693],
bwn:[3,2,11],
cac:[4,6,9693],
cae:[2,5,33300], // est.
cai:[5,28,97],
@ -95,6 +96,7 @@ const CITY_PDB={
dar:[9,67,124],
del:[31,479,6412],
den:[28,310,33300],
dil:[1,0,21], // est.
dkr:[2,4,23],
dks:[0,0,6683], // est.
dla:[3,14,34],
@ -120,11 +122,13 @@ const CITY_PDB={
fft:[0,0,33300], // est.
fih:[7,19,57],
fln:[5,23,9693],
fnj:[0,0,1], // est.
for:[16,362,9693],
fra:[56,2450,3705],
fru:[2,3,78],
fuj:[1,49,231],
fuk:[5,50,1330], // QTnet QD3 has 14 networks, BBIX Fukuoka is there; the rest est.
fun:[1,0,3], // est.
gbe:[1,2,39],
gdl:[4,22,814],
gdx:[1,2,6683], // est.
@ -135,6 +139,7 @@ const CITY_PDB={
gyd:[7,15,131],
gyn:[5,28,9693],
ham:[26,228,3705],
han:[7,19,1029],
har:[2,6,33300], // est.
hav:[0,0,8], // est.: no neutral data center
hba:[2,10,3196], // est.
@ -151,6 +156,7 @@ const CITY_PDB={
icn:[37,201,1197],
igu:[5,26,124],
ind:[8,45,33300], // est.
inu:[1,0,5], // est.
isb:[3,4,488],
ist:[28,334,1290],
ivc:[1,2,755], // est.
@ -172,6 +178,7 @@ const CITY_PDB={
kiv:[5,12,132],
kla:[2,18,71],
krs:[3,15,448], // est.
ktm:[8,4,223],
kul:[20,210,434],
kwi:[3,2,91],
kyv:[33,506,2342],
@ -230,6 +237,7 @@ const CITY_PDB={
nqz:[2,3,284],
nuk:[0,0,2], // est.
nyc:[96,1322,33300],
nyt:[0,0,173], // est.
okc:[4,18,33300], // est.
olm:[0,0,33300], // est.
ome:[0,0,33300], // est.
@ -240,6 +248,7 @@ const CITY_PDB={
pan:[8,26,158],
pap:[0,3,14], // est.
par:[77,1528,2249],
pbh:[3,2,43],
pbm:[2,8,7],
pcn:[0,0,0], // est.: no network of its own
pdl:[1,3,187], // est.
@ -251,6 +260,8 @@ const CITY_PDB={
pkc:[1,2,6683], // est.
pmo:[3,46,1534],
pmw:[3,8,9693],
pnh:[9,18,160],
pni:[1,0,6], // est.
poa:[22,120,9693],
pom:[2,0,46],
pos:[2,10,35], // est.
@ -329,20 +340,25 @@ const CITY_PDB={
top:[1,2,33300], // est.
tor:[46,509,2595],
tpe:[15,274,500],
trw:[1,0,6], // est.
tsv:[1,2,3196], // est.
ttn:[1,3,33300], // est.
tun:[2,0,30],
uio:[9,16,287],
uln:[3,20,82], // est.
uus:[1,3,6683], // est.
van:[13,214,2595],
vdz:[4,7,25],
vie:[30,377,860],
vix:[6,30,9693],
vli:[1,2,15],
vno:[11,52,190],
vte:[3,1,45],
vvo:[5,25,6683], // est.
was:[3,20,33300], // est.
waw:[25,855,2743],
wdh:[1,2,22],
wlg:[13,80,755],
yeg:[5,15,2595],
yfb:[0,0,2595], // est.
yfc:[0,0,2595], // est.

View file

@ -100,9 +100,9 @@ const CABLES=[
{"id":"tea","name":"Boston Tea Party Line","price":0.9,"age":"mid","blurb":tr('cables.boston_to_dublin_nobody_has_thrown'),"pairs":[["bos","dub",[[-65.25,43],[-26,51],[-8.5,51],[-5.75,52.25],[-5.5,53.25]]]]},
{"id":"clementine","name":"Clementine","price":0.6,"age":"new","df":true,"blurb":tr('cables.a_small_sweet_cable_from_broadstairs'),"pairs":[["lon","oos",[[1.44,51.36],[2.92,51.23]]]]},
{"id":"seaus","name":"SEA-US Later","price":1.0,"age":"mid","blurb":tr('cables.los_angeles_to_hawaii_guam_and'),"pairs":[["lax","hnl",[[-119,33.5],[-140,27],[-157.6,21.6]]],["hnl","gum",[[-158.3,21.2],[-180,18],[-200,15],[-214.6,13.5]]],["gum","dvo",[[144,13.7],[135,10.5],[128,6.8],[126.4,5.7],[125.85,6.2],[125.7,6.75]]],["gum","ror",[[144.5,13.1],[139,9.5],[134.8,7.5]]]]},
{"id":"aag","name":"Asia-America Gateaux","price":1.25,"age":"old","blurb":tr('cables.california_to_hong_kong_via_hawaii'),"pairs":[["sjc","hnl",[[-122.8,35],[-140,27.5],[-158.2,21.4]]],["hnl","gum",[[-158.4,21.5],[-180,19],[-200,16],[-214.4,13.7]]],["gum","hkg",[[144.5,14],[130,17.5],[121,20],[115,21.6],[114.3,22.2]]]]},
{"id":"aag","name":"Asia-America Gateaux","price":1.25,"age":"old","blurb":tr('cables.california_to_hong_kong_via_hawaii'),"pairs":[["bwn","sin",[[113.5,4.8],[109,2.8],[105,1.6]]],["sjc","hnl",[[-122.8,35],[-140,27.5],[-158.2,21.4]]],["hnl","gum",[[-158.4,21.5],[-180,19],[-200,16],[-214.4,13.7]]],["gum","hkg",[[144.5,14],[130,17.5],[121,20],[115,21.6],[114.3,22.2]]]]},
{"id":"echo","name":"Echo-Chamber","price":0.85,"age":"new","blurb":tr('cables.california_to_singapore_via_guam'),"pairs":[["sjc","gum",[[-125,38],[-150,30],[-180,21],[-214.8,14]]],["gum","sin",[[137.45,12.58],[125,10.25],[123.75,9],[122,9],[108,5],[104.25,1.25]]]]},
{"id":"hantru","name":"HANTRU-ly Yours","price":1.3,"age":"mid","blurb":tr('cables.guam_to_the_marshall_islands_with'),"pairs":[["gum","maj",[[145,13.3],[158,7],[167,8.5],[171.2,7.2]]]]},
{"id":"hantru","name":"HANTRU-ly Yours","price":1.3,"age":"mid","blurb":tr('cables.guam_to_the_marshall_islands_with'),"pairs":[["pni","gum",[[155,9],[150,11.5],[146,13.2]]],["pni","maj",[[162,6.5],[168,7]]],["gum","maj",[[145,13.3],[158,7],[167,8.5],[171.2,7.2]]]]},
{"id":"coral","name":"Coral Sea Shanty","price":1.0,"age":"new","blurb":tr('cables.sydney_to_papua_new_guinea_and'),"pairs":[["syd","pom",[[153,-32.75],[154.25,-29.25],[153.75,-26]]],["syd","hir",[[152,-33.5],[156.5,-25],[160.5,-14],[160,-9.6]]]]},
{"id":"gond","name":"Gondwanna-Be","price":1.1,"age":"mid","blurb":tr('cables.sydney_to_noumea_wishes_it_were'),"pairs":[["syd","nou",[[152,-33.5],[158,-28],[164,-23.5],[166.2,-22.5]]]]},
{"id":"tonga","name":"Tonga Twister","price":1.3,"age":"mid","blurb":tr('cables.fiji_to_tonga_the_only_way'),"pairs":[["suv","tbu",[[178.8,-18.5],[181.5,-20],[184.6,-21]]]]},
@ -173,7 +173,11 @@ const CABLES=[
{"id":"bdsn","name":"Bahama-Drama Sub Net","price":1.3,"age":"mid","blurb":tr('cables.the_bahamas_island_chain_with_a'),"pairs":[["nas","pap",[[-76,24],[-73.6,21],[-72.8,19]]]]},
{"id":"mlsc","name":"Sicily Shuttle","price":1.1,"age":"mid","blurb":tr('cables.malta_s_three_operators_each_lay'),"pairs":[["mla","pmo",[[14.2,36.05],[12.3,37.2],[12.7,38.25]]]]},
{"id":"cadm","name":"Cad-Moss","price":1.2,"age":"old","blurb":tr('cables.cyprus_to_beirut_a_short_hop'),"pairs":[["nic","bey",[[33.9,34.7],[35.2,34]]]]},
{"id":"ugar","name":"U-Got-It","price":1.3,"age":"old","blurb":tr('cables.cyprus_to_syria_s_one_port'),"pairs":[["nic","dam",[[34,34.9],[35.7,34.9]]]]}
{"id":"ugar","name":"U-Got-It","price":1.3,"age":"old","blurb":tr('cables.cyprus_to_syria_s_one_port'),"pairs":[["nic","dam",[[34,34.9],[35.7,34.9]]]]},
{"id":"emc","name":"East Micro-Nation Cable","price":1.3,"age":"new","blurb":tr('cables.tarawa_nauru_and_pohnpei_on_one'),"pairs":[["trw","inu",[[171,0.8],[168.5,-0.1]]],["inu","pni",[[164,2.5],[160.5,5.6]]]]},
{"id":"vaka","name":"Vaka-tion Cable","price":1.3,"age":"new","blurb":tr('cables.a_branch_down_to_funafuti_off'),"pairs":[["fun","suv",[[179.6,-12],[179,-16.5]]]]},
{"id":"icn1","name":"Inter-Change-Purse","price":1.2,"age":"mid","blurb":tr('cables.port_vila_to_suva_the_cable'),"pairs":[["vli","suv",[[170.5,-18.3],[176.5,-18.5]]]]},
{"id":"tlssc","name":"Timor-row Cable","price":1.2,"age":"new","blurb":tr('cables.timor_leste_s_first_cable_down'),"pairs":[["dil","drw",[[125.8,-8.9],[127.8,-10.5],[130,-12]]]]}
];
const CAB=Object.fromEntries(CABLES.map(c=>[c.id,c]));
const CABLE_PAIRS=CABLES.flatMap(c=>c.pairs.map(([a,b,mid])=>{const A=CITY[a],B=CITY[b];const near=(x,ref)=>x+W*Math.round((ref-x)/W);