Difference between revisions of "Map of current Wikidata edits"

From Simia
Jump to navigation Jump to search
 
Line 6: Line 6:
  
 
If you open the developer console, you can get links and names of the items being displayed.
 
If you open the developer console, you can get links and names of the items being displayed.
 +
 +
The whole page is less than a hundred lines of JavaScript and HTML, and it runs entirely in the browser. It uses the [https://wikitech.wikimedia.org/wiki/Event_Platform/EventStreams Wikimedia Stream API] and the [https://www.wikidata.org/wiki/Special:ApiSandbox Wikidata API], and has no code dependencies. Might be fun to take a look if you're so inclined.
 +
 +
https://github.com/vrandezo/wikidata-edit-map/blob/main/index.html
  
 
{{tag|Simia}}
 
{{tag|Simia}}
 
<noinclude>{{simiapost|english}}</noinclude>
 
<noinclude>{{simiapost|english}}</noinclude>

Latest revision as of 05:32, 16 January 2022

It starts entirely black and then listens to Wikidata edits. Every time an item with a coordinate is edited, a blue dot in the corresponding place is made. So slowly, over time, you get a more and more complete map of Wikidata items.

If you open the developer console, you can get links and names of the items being displayed.

The whole page is less than a hundred lines of JavaScript and HTML, and it runs entirely in the browser. It uses the Wikimedia Stream API and the Wikidata API, and has no code dependencies. Might be fun to take a look if you're so inclined.

https://github.com/vrandezo/wikidata-edit-map/blob/main/index.html

Simia

Previous entry:
White's illusion
Next entry:
Meat Loaf