Hacker Newsnew | past | comments | ask | show | jobs | submitlogin
World Capitals Voronoi (jasondavies.com)
96 points by vincnetas 14 hours ago | hide | past | favorite | 52 comments
 help



Perhaps you should limit it to capital cities or states with a certain population size. Including all the European microstates does not seem appropriate to me; Andorra, Monaco, San Marino and the Vatican have very varying degrees of independence and geopolitical significance.

Very nice.

I guess most dutchies would disagree with the decision to pick De Hague as the Main Capital, though :-)

While all power is in De Hague , Amsterdam definitely is the Capital. De Hague is for complaining about, Amsterdam is for celebrating.


Fixed. It was originally Amsterdam, but I was experimenting with resolving ambiguous capitals by using the de facto seat of government, based on other feedback here (e.g. South Africa originally had multiple capitals). I've switched back to the more familiar atlas capital in ambiguous cases.

The framerate and latency on this visualization is absolute magic. Hover the mouse around over the sphere: https://www.jasondavies.com/maps/voronoi/

Indeed. It is rare to encounter a webgl/gpu visualization that doesn't rev up the fans at 100% while sitting idle, let alone to have this low latency handling input. Virtually all web demos I have seen run terribly because literally 0 attention is paid to actual rendering. The other day somebody submitted one here and admitted they didn't know backface culling was a thing. They also almost universally have no sort of frame pacing.

It feels quite choppy on mobile, but I think it could be fixed by adding touch-action: none

Fixed!

South Africa is split into 4 segments. Johannesburg is not a capital. Otherwise South Africa has 3 capital cities - administrative (Pretoria), legislative (Cape Town) and judicial (Bloemfontein) - but Pretoria is informally considered the "main" capital.

Fixed!

Came here to say this.

The Vatican is surrounded on all sides by Rome. It is on the boundary of Municipio I (historical center) and Municipio XIII (Aurelia), however. So is Municipio I considered the "actual" capital of Italy?

Also, the Vatican is the Holy See (as in seat), not Holy Sea (as in water)...


Excellent point. I've removed Vatican City from the map for now, as it is entirely enclosed by another capital city (Rome) and so its Voronoi cell will be tiny.


Related post from same site earlier this week https://news.ycombinator.com/item?id=48385457

It would be interesting to see a map which was not minimizing [distance to capital] but instead minimized [distance to capital]/sqrt([national population]). The latter would be more robust against Sybil attacks.

I was wondering what kind of metric could be used to visualize a nation’s ability to project power. Maybe some ratio involving the furthest distance from the capital city to the nation’s border?

I’m curious why the sqrt of the population in the denominator?


New Risk board released

Interesting, if a country has multiple capitals, it gets split even more!

I've updated the map to use only one de facto capital city per region.

Taipei claiming a big chunk of the PRC. Probably go down as well as Ottawa and Mexico City claiming big chunks of the USA

Funny enough, Mexico's borders on this globe ain't far off from where they were before the Mexican-American War.

the choice of which city makes it into a dot seems very arbitrary, just for my corner of the woods, I see Genova and Lyons are omitted even they they are larger than their dot-neighbours on this map...

It's not arbitrary. They are the capitals. Capitals are not necessarily the largest cities.

would be interesting to see one that takes into account things like railroads or terrain ruggedness

I would love to see some stats with this. What countries gain/loss the most? Which countries are the last changed? What areas are the now the most countries away from their original country?

Eyeballing the map:

For largest absolute net gain of land area, I guess Mongolia wins the cake, getting a very large slice of Siberia while losing almost no land. For a percentage net gain of land area, maybe one of the European microstates, or East Timor.

Largest absolute net loss of land area is Russia for sure. Largest percent loss is... probably Russia? Again, losing Siberia is a large fraction of its land, and nobody else seems to be so screwed by the distance.

Excluding overseas territories, there's three borders between Yakutia-cum-Japan and its current capital, Moscow, and another case of that in the far western reaches of Brazil. If you include overseas territories, well, French Polynesia is currently almost literally antipodal from Paris, and I don't really know how you would count 'most countries away' in that case, but you can't really get further than that.


I dunno, New Zealand getting a big chunk of Antarctica is a pretty big percentage gain too.

Speedrun: Starting World War III, any%

Dublin knabs a decent chunk of Great Britain, Copenhagen gets southern Sweden. Seems fair.

If they added Cardiff and Edinburgh I think the map would be more realistic

Madison, Canada. Now I just need to sell this to the Canadians.

I find it very funny to imagine Keralam and Tamil Nadu part of Sri Lanka.

Although ethnically they're closer to Sri Lanka than North India

Now the corollary. For each country, given existing borders, place the capital directly in the geographic area centroid? Population centroid? Which capitals move most?

Hmm, looks like it models capital cities as a single point, and therefore assigns much more territory to Vatican City than would a model that took into account Rome's city boundaries

Yes, this is the point, right?

It says "determined by the closest capital city". The only area where Vatican City is closer than (some part of) Rome is within Vatican City.

It is the point, precisely.

I want to see one a diagram which includes the oceans too

I think Montevideo’s slice of Antarctica is the craziest.

Las Malvinas son Uruguayo.

Huh, Canada seems roughly intact (except for BC).

BC's intact too, if I'm reading this correctly. We lose some far north to Iceland and the very southern tip of Ontario to the US, and that seems to be it as far as I can tell. And as a trade we get New England, a good chunk of Washington, and the northern Plains and a bit of the Midwest. Not bad, really!

The funny thing about this is that it's almost realistic

But in fact of course geography plays a big part

That "non-existent" country between France and Spain would actually be the center of Occitan/Langues d'Oc. (Well, it's actually the location of Andorra)

It is also in the middle of the Pyrenees so of course that is going to push population out to the sides

Same thing for where the areas "bleed over" water regions or some rivers


If country boundaries were Voronoi diagrams with respect to their capitals.

Ukraine's capital is misspelled "Kiev". Should be "Kyiv"

Just for a bit of context, this site is from over a decade ago, at which point almost everyone outside of Ukraine used the old spelling of Kiev, despite the official transliteration change to Kyiv from 1995 [0]. Ukraine ended up having to run the KyivNotKiev [1] campaign to get other countries to adopt the new spelling, which mostly gradually happened over the last few years. But I think it's a bit much to expect every resource out there to retroactively update their spelling.

[0] https://en.wikipedia.org/wiki/Names_of_Kyiv

[1] https://en.wikipedia.org/wiki/KyivNotKiev


Kiev is a perfectly valid English spelling.

Fixed!

Great work.

Seems right, ship it.

I really enjoyed this.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: