Determine furthest points away in a country for a specific set of points
Based on a set of locations (nodes) these scripts will try to figure out which points are the furthest away from
these locations in a country.
It uses the following algorithm:
First it tries to find locations, which are potentially far away from our input set:
- It generates the Voronoi-graph based on the input set of locations
- It checks each of the generated vertices whether they are within the country's boundaries or not. Any point
that's in the boundary gets added to the potential list of candidates
- Each of the vertices of the boundary are also added to the potential candidates list
- Finally any point on the boundary that is bisected by a Voronoi-edge is also added to the candidate list
The vertices of the Voronoi-graph are good candidates as they are the furthest point away from their neighbouring
locations. However some of these points can be outside of the country's boundaries. To make sure they are also
accounted for both the vertices in the country's boundaries are added to the list, as well as any place where
the boundary was intersected by a voroni-edge. These are the points where distances are at a local maximum, so
it's worth checking.
Once we have a set of potential locations, we simply go through them, find the nearest node to them, and check
it's distance. Then we sort these nodes according to how large it's distance is.
To make the result not too clustered, we also remove points that are too close together at the end. This makes
sure that remote border locations, which have a large amount of points in the search set will not be
over-represented in the result, as we are interested in more distinct locations anyway.
Once we have the end values we render them to a map as well.
Note: the voronoi diagram is calculated using a metric on a plate carrée projection of longitude and latitude
values, with an optional adjustment based on median latitude. For countries that span a large latitude range
this might not be exact enough on the top and bottom part of the image, and might skew which points should be
considered and which not. However distance calculations afterwards are done using great circle distances, so
they should be accurate.
Download and usage
Please see https://github.com/sztupy/kossuth-map for more
details
Examples
Points furthest away in Hungary from a street named "Kossuth"
Almost all settlements in Hungary have a street or square named "Kossuth". If you wish to be the furthest away
from any of them, the best place is around the tripoint border between Hungary, Austria and Slovenia where
you'll be 17km away from one.
On average, if you are in a random place in Hungary, it's likely you will be within 3km of a Kossuth street or
square.
Static map (click for large resolution image):
You can also find data on other streets in this list:
-
Kossuth:
Furthest: 17.08km,
Average: 2.91km,
from 46.86277,16.09404
to 46.9525,16.27595
(Interactive Map)
-
Rákóczi:
Furthest: 16.94km,
Average: 3.5km,
from 46.86277,16.09404
to 46.95331,16.27282
(Interactive Map)
-
Petőfi:
Furthest: 17.07km,
Average: 3.1km,
from 46.86277,16.09404
to 46.95017,16.2782
(Interactive Map)
-
Ady:
Furthest: 16.6km,
Average: 4.21km,
from 45.78283,18.0233
to 45.7966,18.23587
(Interactive Map)
-
József Attila:
Furthest: 18.59km,
Average: 4.85km,
from 46.78702,16.30219
to 46.66981,16.47574
(Interactive Map)
-
Fő út, Fő tér, stb.:
Furthest: 34.5km,
Average: 3.47km,
from 45.99161,19.27482
to 46.14591,18.88793
(Interactive Map)
-
Szabadság:
Furthest: 29.07km,
Average: 4.36km,
from 46.62454,16.38461
to 46.84672,16.58522
(Interactive Map)
-
Széchenyi:
Furthest: 24.3km,
Average: 4.97km,
from 46.72175,16.33412
to 46.85071,16.59113
(Interactive Map)
-
Dózsa:
Furthest: 17.34km,
Average: 3.87km,
from 46.86277,16.09404
to 46.95121,16.28145
(Interactive Map)
-
Szent:
Furthest: 34.96km,
Average: 1.66km,
from 46.62796,16.37843
to 46.42956,16.73193
(Interactive Map)
-
Hunyadi:
Furthest: 20.97km,
Average: 5.47km,
from 45.79214,17.96802
to 45.8501,17.71126
(Interactive Map)
-
Mátyás:
Furthest: 41.12km,
Average: 9.48km,
from 46.54216,16.50172
to 46.41254,17.00319
(Interactive Map)
-
Lenin:
Furthest: 170.67km,
Average: 43.08km,
from 47.74298,16.53111
to 46.42674,17.68806
(Interactive Map)
-
Deák:
Furthest: 31.29km,
Average: 6.38km,
from 46.12309,17.11778
to 45.96206,17.44928
(Interactive Map)
-
Babits:
Furthest: 81.82km,
Average: 19.47km,
from 46.12259,17.13843
to 46.82832,16.83566
(Interactive Map)
-
Csokonai:
Furthest: 42.45km,
Average: 10.52km,
from 46.86277,16.09404
to 46.91784,16.6452
(Interactive Map)
-
Árpád:
Furthest: 37.87km,
Average: 4.83km,
from 46.61698,16.39954
to 46.57996,16.89091
(Interactive Map)
-
Jókai:
Furthest: 21.21km,
Average: 5.16km,
from 46.18462,17.63409
to 46.22022,17.36409
(Interactive Map)
-
Arany:
Furthest: 18.0km,
Average: 4.93km,
from 46.06018,17.25823
to 46.20668,17.15885
(Interactive Map)
-
Vörösmarty:
Furthest: 30.03km,
Average: 6.4km,
from 48.52608,20.48167
to 48.28195,20.65516
(Interactive Map)
-
Béke:
Furthest: 34.61km,
Average: 4.73km,
from 46.89072,16.13821
to 46.63825,16.40341
(Interactive Map)
-
Zrínyi:
Furthest: 23.71km,
Average: 6.15km,
from 48.55144,21.37787
to 48.35513,21.25275
(Interactive Map)
-
Május 1:
Furthest: 43.2km,
Average: 9.84km,
from 47.48474,21.20295
to 47.09625,21.21326
(Interactive Map)
-
Március 15:
Furthest: 71.38km,
Average: 22.78km,
from 46.1631,19.93597
to 46.5627,20.66213
(Interactive Map)
-
Hősök:
Furthest: 53.31km,
Average: 10.38km,
from 47.75419,16.5678
to 47.28348,16.70282
(Interactive Map)
Points furthest away in Hungary from any sports complex
There's plenty of sports complexes in Hungary. To be the furthest from one, you have to be just North-East of
Hortobágy National Park in the middle of nowhere, where the closest complex will be a mere 12km away.
On average, if you are in a random place in Hungary, it's likely you will be within 3.5km of a Sports Complex.
Static map (click for large resolution image):
The dataset is from a list I gathered for another project called Magyar Stadionok: https://github.com/sztupy/magyar-stadionok
Points furthest away in Great Britain from a pub
Also it's widely known that there are a lot of pubs in the UK. However there's not that many of them in the
Highlands, you can actually be 72km from one if you go to the right spot (or, if you include Hirta Isle the
distance is 80km).
The best you can do is 13km in Wales, and 11.8km in England (excluding Lundi Isle where it's 26km).
On average, if you are in a random place in Great Britain, it's likely you will be within one km of a pub
Static map (click for large resolution image):
Points furthest away in Scotland from a distillery
The Isles are left out from distilleries unfortunately, especially Shetland, where Unst is 240km away from the
nearest distillery. On the mainland... well you have to head towards England to get 102km away from Scotch.
On average, if you are in a random place in Scotland, it's likely you will be within 15km of a Distillery
Static map (click for large resolution image):