Skip to content

Checks entries in a given Wikipedia category against existing places in OpenStreetMap.

Notifications You must be signed in to change notification settings

rnorris/wikipedia-osm-check

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

wikipedia-osm-check

Checks entries in a given Wikipedia category against existing places in OpenStreetMap.

This is a simple python script that takes a Wikipedia category and a region (as recognised by Overpass) and returns a list of places that are present in the Wikipedia category but not in OpenStreetMap (within the region).

$ ./wikipedia_osm_check.py en Category:Hamlets_in_Oxfordshire Oxfordshire

You can limit the types of place (village, town etc.) that are checked against in OpenStreetMap using the types option:

$ ./wikipedia_osm_check.py -t village en Category:Villages_in_Oxfordshire Oxfordshire

The script lists its dependancies in the requirements.txt file, as is the fashion. It depends on the requests library, to make my life easier, and it will also be quicker if you install simplejson.

Limitations

  • Regions are limited to those recognised by the OSM Overpass API
  • Place name comparison is quite naïve
  • Does not authenticate with Wikipedia, so limited to 500 entries in a category

About

Checks entries in a given Wikipedia category against existing places in OpenStreetMap.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%