Live data from Hacker News

Show HN: For all cities over 100k, calculated the farthest and closest cities

cityextremes.com

1–8 of 8 posts

Re: Show HN: For all cities over 100k, calculated the farthest and closest cities

#2
How I built this: I pulled the population data from the UN statistics report on cities over 100k and then batch geocoded all of the cities (there was also a fair bit of data cleansing required). I then used a macro in excel to calculate the distance between every city pair (using Vincenty's formula) and uploaded the results to a database. Happy to share more if anyone is curious.

Re: Show HN: For all cities over 100k, calculated the farthest and closest cities

#3
This is quite fun actually. I live in Milan (Italy) and my cousin lives in Aukland (NZ). These cities are listed as being the furthest from each other at more than 18,000 km.

Incidentally as a kid I was quite obsessed with the idea of visiting the antipode of my home's exact geographic location, but sadly, when I finally got around to calculating it, I discovered it lay in a nondescript expanse of ocean.

Re: Show HN: For all cities over 100k, calculated the farthest and closest cities

#8
post #7
post #6

Earlier quoted context omitted.

Just some simple PHP / MySQL

ok. was wondering if you used open source data tools etc.

I took the list of 4 thousand odd cities from the UN statistics report of cities over 100k and then ran it through the batch geocoding site: http://www.findlatitudeandlongitude.com/ ... apart from that just old fashioned excel to calculate