<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.jon.geek.nz/index.php?action=history&amp;feed=atom&amp;title=Wikipedia</id>
	<title>Wikipedia - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.jon.geek.nz/index.php?action=history&amp;feed=atom&amp;title=Wikipedia"/>
	<link rel="alternate" type="text/html" href="https://wiki.jon.geek.nz/index.php?title=Wikipedia&amp;action=history"/>
	<updated>2026-05-14T04:43:14Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.35.7</generator>
	<entry>
		<id>https://wiki.jon.geek.nz/index.php?title=Wikipedia&amp;diff=2439&amp;oldid=prev</id>
		<title>Johnno: /* Get some data out of OpenStreetMap */</title>
		<link rel="alternate" type="text/html" href="https://wiki.jon.geek.nz/index.php?title=Wikipedia&amp;diff=2439&amp;oldid=prev"/>
		<updated>2021-09-23T04:15:18Z</updated>

		<summary type="html">&lt;p&gt;&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Get some data out of OpenStreetMap&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left diff-editfont-monospace&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 04:15, 23 September 2021&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l5&quot; &gt;Line 5:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 5:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;=== Get some data out of OpenStreetMap ===&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;=== Get some data out of OpenStreetMap ===&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt;−&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Firstly, query [https://openstreetmap.org/ OpenStreetMap] for line objects with a &amp;quot;name&amp;quot; key with a value of either &amp;quot;Transmission Gully Motorway&amp;quot;, &amp;quot;Waitangirua Link Road&amp;quot;, &amp;quot;Whitby Link Road&amp;quot;, or &amp;quot;Kenepuru Link Road&amp;quot;. You can do this using [https://query2map.toolforge.org/ query2map], e.g. [https://query2map.toolforge.org/queryinmap.php?name=Transmission+Gully+&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;Motorawy&lt;/del&gt;&amp;amp;key=highway&amp;amp;value=construction&amp;amp;types=lines&amp;amp;BBOX=174.720805,-41.189729,175.120805,-40.989729]&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;+&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Firstly, query [https://openstreetmap.org/ OpenStreetMap] for line objects with a &amp;quot;name&amp;quot; key with a value of either &amp;quot;Transmission Gully Motorway&amp;quot;, &amp;quot;Waitangirua Link Road&amp;quot;, &amp;quot;Whitby Link Road&amp;quot;, or &amp;quot;Kenepuru Link Road&amp;quot;. You can do this using [https://query2map.toolforge.org/ query2map], e.g. [https://query2map.toolforge.org/queryinmap.php?name=Transmission+Gully+&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;Motorway&lt;/ins&gt;&amp;amp;key=highway&amp;amp;value=construction&amp;amp;types=lines&amp;amp;BBOX=174.720805,-41.189729,175.120805,-40.989729]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[https://query2map.toolforge.org/queryinmap.php?name=Whitby+Link+Road&amp;amp;key=highway&amp;amp;value=construction&amp;amp;types=lines&amp;amp;BBOX=174.720805,-41.189729,175.120805,-40.989729]&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[https://query2map.toolforge.org/queryinmap.php?name=Whitby+Link+Road&amp;amp;key=highway&amp;amp;value=construction&amp;amp;types=lines&amp;amp;BBOX=174.720805,-41.189729,175.120805,-40.989729]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[https://query2map.toolforge.org/queryinmap.php?name=Waitangirua+Link+Road&amp;amp;key=highway&amp;amp;value=construction&amp;amp;types=lines&amp;amp;BBOX=174.720805,-41.189729,175.120805,-40.989729]&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[https://query2map.toolforge.org/queryinmap.php?name=Waitangirua+Link+Road&amp;amp;key=highway&amp;amp;value=construction&amp;amp;types=lines&amp;amp;BBOX=174.720805,-41.189729,175.120805,-40.989729]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key wiki_jon_geek_nz:diff::1.12:old-2438:rev-2439 --&gt;
&lt;/table&gt;</summary>
		<author><name>Johnno</name></author>
	</entry>
	<entry>
		<id>https://wiki.jon.geek.nz/index.php?title=Wikipedia&amp;diff=2438&amp;oldid=prev</id>
		<title>Johnno: Created page with &quot;== Maps ==  Here&#039;s how to add a map to a Wikipedia article, using the [https://en.wikipedia.org/wiki/Transmission_Gully_Motorway Transmission Gully Motorway] map as an example...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.jon.geek.nz/index.php?title=Wikipedia&amp;diff=2438&amp;oldid=prev"/>
		<updated>2021-09-23T04:12:22Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;== Maps ==  Here&amp;#039;s how to add a map to a Wikipedia article, using the [https://en.wikipedia.org/wiki/Transmission_Gully_Motorway Transmission Gully Motorway] map as an example...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;== Maps ==&lt;br /&gt;
&lt;br /&gt;
Here&amp;#039;s how to add a map to a Wikipedia article, using the [https://en.wikipedia.org/wiki/Transmission_Gully_Motorway Transmission Gully Motorway] map as an example.&lt;br /&gt;
&lt;br /&gt;
=== Get some data out of OpenStreetMap ===&lt;br /&gt;
&lt;br /&gt;
Firstly, query [https://openstreetmap.org/ OpenStreetMap] for line objects with a &amp;quot;name&amp;quot; key with a value of either &amp;quot;Transmission Gully Motorway&amp;quot;, &amp;quot;Waitangirua Link Road&amp;quot;, &amp;quot;Whitby Link Road&amp;quot;, or &amp;quot;Kenepuru Link Road&amp;quot;. You can do this using [https://query2map.toolforge.org/ query2map], e.g. [https://query2map.toolforge.org/queryinmap.php?name=Transmission+Gully+Motorawy&amp;amp;key=highway&amp;amp;value=construction&amp;amp;types=lines&amp;amp;BBOX=174.720805,-41.189729,175.120805,-40.989729]&lt;br /&gt;
[https://query2map.toolforge.org/queryinmap.php?name=Whitby+Link+Road&amp;amp;key=highway&amp;amp;value=construction&amp;amp;types=lines&amp;amp;BBOX=174.720805,-41.189729,175.120805,-40.989729]&lt;br /&gt;
[https://query2map.toolforge.org/queryinmap.php?name=Waitangirua+Link+Road&amp;amp;key=highway&amp;amp;value=construction&amp;amp;types=lines&amp;amp;BBOX=174.720805,-41.189729,175.120805,-40.989729]&lt;br /&gt;
[https://query2map.toolforge.org/queryinmap.php?name=Kenepuru+Link+Road&amp;amp;key=highway&amp;amp;value=construction&amp;amp;types=lines&amp;amp;BBOX=174.720805,-41.189729,175.120805,-40.989729]&lt;br /&gt;
&lt;br /&gt;
Then look in the source for each of these pages, and grab the URL in the JavaScript API call that fetches KML from the query server, and save the URL response directly as a KML file (it should contain XML).&lt;br /&gt;
&lt;br /&gt;
Go to [https://geojson.io geojson.io] and drag-and-drop your KML file(s) onto the map. Then save it as a GeoJSON file.&lt;br /&gt;
&lt;br /&gt;
=== Add the map data to Wikimedia Commons ===&lt;br /&gt;
&lt;br /&gt;
Next, create a new map data page on Wikimedia Commons. These are in the &amp;quot;Data:&amp;quot; namespace, end with .map and contain raw GeoJSON data. For example, https://commons.wikimedia.org/wiki/Data:Transmission_Gully_motorway.map&lt;br /&gt;
&lt;br /&gt;
Paste the contents into the new map page where indicated, and choose the Open Database license that OpenStreetMap uses for its data.&lt;br /&gt;
&lt;br /&gt;
=== Point Wikidata at the map data ===&lt;br /&gt;
&lt;br /&gt;
Go into Wikidata and find the thing you want to map - in this case, [https://www.wikidata.org/wiki/Q7834625 Transmission Gully Motorway]. Add the [https://www.wikidata.org/wiki/Property:P3896 geoshape] property, and give it the name of your new Commons map data page. It should try and look it up for you.&lt;br /&gt;
&lt;br /&gt;
You may also need to add a [https://www.wikidata.org/wiki/Property:P625 coordinates location] property as well, which should correspond to the centre of the feature.&lt;br /&gt;
&lt;br /&gt;
=== Update the Wikipedia article ===&lt;br /&gt;
&lt;br /&gt;
Then make this change in the Wikipedia article - it was in the middle of an infobox template, but see [https://en.wikipedia.org/wiki/Template:Maplink Template:Maplink] for more info.&lt;br /&gt;
&lt;br /&gt;
 -  | map = TransmissionGully.png &lt;br /&gt;
 -  | map_alt = Map of the route of the Transmission Gully Motorway&lt;br /&gt;
 -  | map_notes = The route of the Transmission Gully Motorway.&lt;br /&gt;
 +  | map = {{mapframe&lt;br /&gt;
 +    | from = Transmission Gully motorway.map&lt;br /&gt;
 +    | zoom = 10&lt;br /&gt;
 +    | text = Map of the Transmission Gully motorway&lt;br /&gt;
 +    | frame = yes | frame-width = 290 | frame-height = 260 | frame-align = center&lt;br /&gt;
 +  }}&lt;br /&gt;
 +  | map_custom = yes&lt;/div&gt;</summary>
		<author><name>Johnno</name></author>
	</entry>
</feed>