<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://mwiki.costasano.club/index.php?action=history&amp;feed=atom&amp;title=MediaWiki%3APlaceForm.js</id>
	<title>MediaWiki:PlaceForm.js - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://mwiki.costasano.club/index.php?action=history&amp;feed=atom&amp;title=MediaWiki%3APlaceForm.js"/>
	<link rel="alternate" type="text/html" href="https://mwiki.costasano.club/index.php?title=MediaWiki:PlaceForm.js&amp;action=history"/>
	<updated>2026-07-23T06:30:51Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.45.1</generator>
	<entry>
		<id>https://mwiki.costasano.club/index.php?title=MediaWiki:PlaceForm.js&amp;diff=727&amp;oldid=prev</id>
		<title>Mngr: Created page with &quot;function lookupCoordinates() {     const address = document.querySelector(&#039;[name=&quot;address&quot;]&#039;).value;     if (!address) {         alert(&quot;Please enter an address first.&quot;);         return;     }      const url = &quot;https://nominatim.openstreetmap.org/search?format=json&amp;q=&quot; + encodeURIComponent(address);      fetch(url)         .then(response =&gt; response.json())         .then(data =&gt; {             if (data.length === 0) {                 alert(&quot;No coordinates found for this ad...&quot;</title>
		<link rel="alternate" type="text/html" href="https://mwiki.costasano.club/index.php?title=MediaWiki:PlaceForm.js&amp;diff=727&amp;oldid=prev"/>
		<updated>2026-02-14T12:20:48Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;function lookupCoordinates() {     const address = document.querySelector(&amp;#039;[name=&amp;quot;address&amp;quot;]&amp;#039;).value;     if (!address) {         alert(&amp;quot;Please enter an address first.&amp;quot;);         return;     }      const url = &amp;quot;https://nominatim.openstreetmap.org/search?format=json&amp;amp;q=&amp;quot; + encodeURIComponent(address);      fetch(url)         .then(response =&amp;gt; response.json())         .then(data =&amp;gt; {             if (data.length === 0) {                 alert(&amp;quot;No coordinates found for this ad...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;function lookupCoordinates() {&lt;br /&gt;
    const address = document.querySelector(&amp;#039;[name=&amp;quot;address&amp;quot;]&amp;#039;).value;&lt;br /&gt;
    if (!address) {&lt;br /&gt;
        alert(&amp;quot;Please enter an address first.&amp;quot;);&lt;br /&gt;
        return;&lt;br /&gt;
    }&lt;br /&gt;
&lt;br /&gt;
    const url = &amp;quot;https://nominatim.openstreetmap.org/search?format=json&amp;amp;q=&amp;quot; + encodeURIComponent(address);&lt;br /&gt;
&lt;br /&gt;
    fetch(url)&lt;br /&gt;
        .then(response =&amp;gt; response.json())&lt;br /&gt;
        .then(data =&amp;gt; {&lt;br /&gt;
            if (data.length === 0) {&lt;br /&gt;
                alert(&amp;quot;No coordinates found for this address.&amp;quot;);&lt;br /&gt;
                return;&lt;br /&gt;
            }&lt;br /&gt;
            const lat = data[0].lat;&lt;br /&gt;
            const lon = data[0].lon;&lt;br /&gt;
&lt;br /&gt;
            document.querySelector(&amp;#039;[name=&amp;quot;latitude&amp;quot;]&amp;#039;).value = lat;&lt;br /&gt;
            document.querySelector(&amp;#039;[name=&amp;quot;longitude&amp;quot;]&amp;#039;).value = lon;&lt;br /&gt;
        })&lt;br /&gt;
        .catch(error =&amp;gt; alert(&amp;quot;Error fetching coordinates: &amp;quot; + error));&lt;br /&gt;
}&lt;/div&gt;</summary>
		<author><name>Mngr</name></author>
	</entry>
</feed>