OpenStreetMap logo OpenStreetMap

kmpoppe's Diary

Recent diary entries

Small Towns in Europe

Posted by kmpoppe on 1 February 2024 in English. Last updated on 2 February 2024.

TL;DR: There are quite a few places on the continent that still need mapping. If you want to know why and how I came to that conclusion, read on ;-)

Preface

Since March 2023 there’s a handy bot called @SmallTownUSA@en.osm.town on the Fediverse, that posts a daily “task” out to its followers, highlighting “small towns” in the United States of America, that, to use the same phrasing, “seem like they could use some mapping”, along with a screenshot of the (Carto) map of the area.

Sparing the full technical details, the program randomly picks an entry from an overpass export of all nodes that have any place tag and a population tag with a value of less than 1000 (hence the name “SmallTown”) in the USA (currently 11389), asks overpass whether there are 10 buildings or less in 800 meters around that node and if so, posts about it.

As the bot has been doing this for about 10 months now, there seem to be at least 300 places that match the above description. Naturally, I wondered, how Europe would fare in comparison. Chatting with the bot’s developer, Matthew Wildon (OSM, Fediverse), they told me, that they checked France for potential candidates and found none and then didn’t look into it any further.

What’s on on the Continent?

My interest was now piqued. Would a similar “SmallTownEurope” bot make any sense, or would it run out of things to post within a week? Or is Pascal Neis’ Unmapped Places of OpenStreetMap Result Map enough to find areas where mapping is needed?

Suffice it to say, I wouldn’t know the answer to that from purely looking at the map, I needed data. So I quickly got myself the above-mentioned Overpass Exports for Areas in Europe - where I was using the English Wikipedia definition of what’s in Europe: “[…] countries falling even partially under any common geographical or political definitions of Europe”. To cover most of the area of those countries, I also checked the “de facto independent countries with limited to no international recognition” (Abkhazia, Kosovo, Northern Cyprus, South Ossetia, Transnistria) as well as “dependencies and similar territories with broad autonomy [that] are also found within or close to Europe” (Aland, Guernsey, Jersey, Faroe Islands, Gibraltar, Greenland, Isle of Man, Svalbard).

Way to go!

263845 nodes fall into the definition of this survey (any place tag and a population tag with a value of less than 1000 and more than 0). I then asked poor Overpass for each one how many buildings there were in an 800-meter radius. That took about 3 days 😅

The beauty of knowing the buildings count for every node now is that we can easily adjust the parameters we’re looking at. When looking through the matches in Germany I found that some very well-mapped places could be considered “false positives”. 5 people living in a dwelling with 7 buildings is a very reasonable idea, but matches the “less or equal than 10 buildings” rule, so to get to my final numbers I added the filter “more people living there than buildings mapped”.

In the end, I arrived at 89338 matching towns (or 33.86%) with the 4 highest countries (Spain, Russia, Ukraine, Romania) making up 82.1845% of those matches (73422).

4 countries do not have a single match: Belgium, Malta, Norway and Switzerland

You want numbers, you say?

Alright then.

Table 1: Ordered by total matches in a country

Rank Country Matches Total Percent
1 Estonia 1 256 0.3906
1 Iceland 1 80 1.2500
1 Ireland 1 46 2.1739
1 Netherlands 1 1410 0.0709
1 Slovakia 1 1863 0.0537
6 Greenland 2 22 9.0909
7 Latvia 7 97 7.2165
8 France 10 9484 0.1054
9 Northern Cyprus 11 15 73.3333
10 Cyprus 19 55 34.5455
11 Germany 26 9991 0.2602
12 Finland 29 177 16.3842
13 Austria 31 8955 0.3462
14 North Macedonia 32 39 82.0513
15 Denmark 38 3798 1.0005
15 Hungary 38 1915 1.9843
17 Moldova 44 240 18.3333
18 Kosovo 49 95 51.5789
19 Albania 59 102 57.8431
20 Czech Republic 68 12895 0.5273
21 Montenegro 69 197 35.0254
22 United Kingdom 77 710 10.8451
23 Azerbaijan 97 109 88.9908
24 Poland 101 9586 1.0536
25 Slovenia 106 1695 6.2537
26 Bosnia and Herzegovina 115 434 26.4977
27 Armenia 133 527 25.2372
28 Sweden 223 1230 18.1301
29 Bulgaria 304 598 50.8361
30 Kazakhstan 351 479 73.2777
31 Belarus 395 4810 8.2121
32 Turkey 598 972 61.5226
33 Croatia 810 1572 51.5267
34 Georgia 883 1462 60.3967
35 Portugal 952 1562 60.9475
36 Lithuania 2328 16685 13.9527
37 Greece 2365 3156 74.9366
38 Italy 2597 16800 15.4583
39 Serbia 2953 3871 76.2852
40 Romania 7940 9840 80.6911
41 Ukraine * * *
42 Russia 20112 48180 41.7435
43 Spain 28983 52081 55.6499

Table 2: Ordered by percent of towns matched

Rank Country Matches Total Percent
1 Slovakia 1 1863 0.0537
2 Netherlands 1 1410 0.0709
3 France 10 9484 0.1054
4 Germany 26 9991 0.2602
5 Austria 31 8955 0.3462
6 Estonia 1 256 0.3906
7 Czech Republic 68 12895 0.5273
8 Denmark 38 3798 1.0005
9 Poland 101 9586 1.0536
10 Iceland 1 80 1.2500
11 Hungary 38 1915 1.9843
12 Ireland 1 46 2.1739
13 Slovenia 106 1695 6.2537
14 Latvia 7 97 7.2165
15 Belarus 395 4810 8.2121
16 Greenland 2 22 9.0909
17 United Kingdom 77 710 10.8451
18 Lithuania 2328 16685 13.9527
19 Italy 2597 16800 15.4583
20 Finland 29 177 16.3842
21 Sweden 223 1230 18.1301
22 Moldova 44 240 18.3333
23 Armenia 133 527 25.2372
24 Bosnia and Herzegovina 115 434 26.4977
25 Cyprus 19 55 34.5455
26 Montenegro 69 197 35.0254
27 Russia 20112 48180 41.7435
28 Bulgaria 304 598 50.8361
29 Croatia 810 1572 51.5267
30 Kosovo 49 95 51.5789
31 Spain 28983 52081 55.6499
32 Albania 59 102 57.8431
33 Georgia 883 1462 60.3967
34 Portugal 952 1562 60.9475
35 Turkey 598 972 61.5226
36 Ukraine * * *
37 Kazakhstan 351 479 73.2777
38 Northern Cyprus 11 15 73.3333
39 Greece 2365 3156 74.9366
40 Serbia 2953 3871 76.2852
41 Romania 7940 9840 80.6911
42 North Macedonia 32 39 82.0513
43 Azerbaijan 97 109 88.9908

* There shall be no mapping in Ukraine for now

Where do we go from here?

I think it’s clear from the numbers, that working on a single match per day isn’t feasible. That would take 244½ years, and we can’t wait that long, can we?

There is now a MapRoulette Project for all matches except Ukraine and Russia.

If you have any other ideas or questions, let me know in the comments.

Have a lovely day.

K