[OSM-dev] Wikipedia/OSM integration - round trip?

Bjoern Hassler bjohas+mw at gmail.com
Wed Apr 26 15:03:34 UTC 2017


Hello all,

I'm interested in working across Wikipedia and OSM, e.g. fixing Wikidata
tags in OSM, and coordinates in Wikipedia, etc. I've also found this very
useful in terms of ensuring that data is correct on both.

Does anybody have suggestions for faster linking from Wikipedia to OSM?

To explain:

The wikipedia coordinates link (on a wikipedia page) is something like:
https://tools.wmflabs.org/geohack/geohack.php?pagename=Nuraghe_Santu_Antine&params=40.4865_N_8.7698_E_
which then lets you go to OSM (by coordinates) - but obviously, you have to
click that link first, then pick OSM from the list on that page. On OSM,
you then have to click edit to identify the object referred to in OSM (if
there is one). So it's not too bad, but if you do this regularly, it's a
bit tedious.

A better way would be if the wmflabs url could be rewritten (clientside,
e.g. greasemonkey/tampermonkey), to have a direct link from the wikipedia
page to OSM.

Even better would be if the url contained the wikidata item
https://tools.wmflabs.org/geohack/geohack.php?pagename=Nuraghe_Santu_Antine&params=40.4865_N_8.7698_E_&wikidata=Q925624
(could be done on the wmflabs side, or also with greasmonkey, as it's
embedded on the wikipedia page).

Greasemonkey could add a link from the wikipedia page to a resolving
service, say
https://WikidataToOSM/?pagename=Nuraghe_Santu_Antine&params=40.4865_N_8.7698_E_&wikidata=Q925624
which would allow redirect to the actual object on OSM:
http://www.openstreetmap.org/way/258094245

That would mean that with one click on a Wikipedia page, you'd see the
corresponding object in OSM.

The other way is straight forward: Because that listing on OSM rewrites
wikidata/wikipedia tags to URLs, it's just one click to go back from there
to wikidata/wikipedia, so that's straight forward.

(Ideally, Greasemonkey would also add a direct link to remote control.)

(Also, the OSM search doesn't return anything for the wikidata object
http://www.openstreetmap.org/search?query=Q925624 - would be great if it
did.)

Does anybody have any thoughts on this, know of a tool, or coded something
in the past?

Many thanks,
Bjoern
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/dev/attachments/20170426/e8f57f82/attachment.html>


More information about the dev mailing list