OpenStreetMap

Geolocations of Wikipedia articles on the OSM map

Posted by Alex-7 on 29 December 2015 in English (English)

I wrote a web-application to find Wikipedia articles geolocations on the OpenStreetMap www.ausleuchtung.ch/geo_wiki/.

After the click on the map, it shows Wikipedia articles geolocations in the radius of ten kilometers around the click. A Wikipedia language can be changed by replacing the language code "en" for English, to "fr" for French, "de" for German, etc.

I wrote it mostly for myself (and actually use it), but it works for the whole world and for all Wikipedia languages. The number of articles is limited by 100.

Comment from Richard on 29 December 2015 at 11:39

That's very cool. Did you parse the full Wikipedia dump yourself or is there a dump of just coordinates and article IDs/titles?

Comment from Alex-7 on 29 December 2015 at 11:50

This application uses the Wikipedia API. Actually it is just about 20 lines of code.

I use it to plan expeditions to make ground and aerial photos for Wikipedia articles.

There are other web-applications to find Wikipedia articles geolocations on other maps, but I wanted a clean interface, with the OSM map on the whole screen.

Comment from Zverik on 29 December 2015 at 12:38

Okay, I've uploaded my script to the GitHub: https://github.com/Zverik/wiki2osm It produces an OSM XML file from a wikipedia article dump, but you can then convert it to any format.

Comment from ImreSamu on 29 December 2015 at 12:51

Related:

"Creating a Bridge Between OpenSteetMap and Wikipedia: Wikipedia-tags-in-OSM. A Tool to Add Wikipedia Tags in OSM and Coordinates in Wikipedia"

Comment from Alan Bragg on 29 December 2015 at 14:43

This is GREAT; just what I've been looking for. I like to jump around the globe, adding roads and residential areas. I've recently been mapping in Tibet and feel really lost culturally. Your map is giving me some hits and insight into a very remote area. Thanks for posting.

Comment from nyuriks on 29 December 2015 at 18:08

Nice! Some similar efforts: * https://tools.wmflabs.org/wiwosm/osm-gadget-leaflet/#/?lang=en&article=Berlin * The Wikipedia Android app has a map ("nearby") feature * More at https://www.mediawiki.org/wiki/Maps/Future_Plans#Existing_Tools

Comment from k1wi on 31 December 2015 at 11:47

Is there a similar service based on the OSM tags wikipedia=* or wikidata=*, instead of Wikipedia coordinates?

Comment from Alex-7 on 3 January 2016 at 00:35

k1wi, it is a good idea. Thank you. I've implemented already the display of Wikipedia articles geolocations by the wikipedia and wikimedia_commons tag assigned to a node in the same web-application.

It is a bit more complicated to display a geolocation when the wikipedia tag is assigned to an area or a way. It will try to implement it later.

Comment from Alex-7 on 4 January 2016 at 13:04

Search for geolocations of wikipedia, wikimedia_commons, wikidata OSM tags assigned either to nodes, areas, or ways is implemented.

Login to leave a comment