Following a flippant comment made by my girlfriend that she would "run off" her McDonald's lunch, this set me thinking about distances between McDonald's outlets in Ireland. (As it turns out, she would have needed to run a half marathon to run off her lunch!)
My first idea was to find how far in Ireland you could possibly get from a McDonald's, but I was beaten to the punch on that one by about 8 years: spatialoverlay.xyz. My next idea was to find the most remote outlet. (By chance, I had recently read an article about the most remote point in Ireland, it is in the Nephin Beg mountains in Mayo: threerockbooks.com.)
Using overpass-turbo.eu, it's very easy to pull out all of the GIS data for McDonald's outlets on the island of Ireland, shown below. The data is also exportable to several file formats, for this I used json.
I'm a kdb+ programmer by trade, so naturally I reached for this first to analsye the data (the relevant data and code is available on github.com). Along the way, I learnt about the Haversine formula for calculating great circle distances between pairs of coordinates (assuming a spherical Earth...) and implemented it in kdb+. Once I had the distances between each pair of outlets, it's straighforward to find the max/min distances etc.
Somewhat unsuprisingly, the most remote McDonalds outlet is the outlet closest to Ireland's most remote point, that is the Castlebar outlet, 66 kilometres away from the outlet at the Westside shopping centre in Galway city. Of course, this is the great circle distance, actual travel distance would be longer (in this case, ~78.5k).
The second most remote outlet is at Carraroe retail park in Sligo, which is 42.5k from the Carrick-on-Shannon outlet. Rounding out the top 3 is the Coleraine outlet, 38k away from the Ballymena outlet. As for the closest locations, the outlet on upper O'Connell Street is only 250m away from the Parnell Street outlet! The walking distance is 460m though, so I think that the real closest locations are... both of the McDonald's on O'Connell Street. Yes, there are two. These are only 270m apart walking distance. (Upper O'Connell Street and Lower O'Connell Street). Some notable contenders include the two outlets in Tallaght, Dublin (~350 metres) and the two outlets in Cork City centre (Saint Patrick's Street and Winthrop Street ~410 metres).
The two most distant outlets are the Killarney outlet and the Larne outlet, at 394k apart, or a 505k drive! For reference, the average distance between an outlet and its nearest neighbour is 10k, while the median is only 3.5k.
Some future ideas I have include calculating the average distance in Ireland to a McDonald's outlet and calculating the pair of McDonald's you would need to run between in order to "run off" certain McDonald's meals. Part Two!