<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none"><!--P{margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr" style="font-size:12pt;color:#000000;background-color:#FFFFFF;font-family:Calibri,Arial,Helvetica,sans-serif;">
<p>I've managed to install a small OSM test setup with a local instance of Nominatim. I can edit and save map changes via the iD editor that is bundled with OSM.</p>
<p><br>
</p>
<p>However, I didn't have success with using an isolated instance of iD. I've edited config.js as below, but I can't connect to the API.
</p>
<p><br>
</p>
<p>Is it because I need a user session?<br>
</p>
<p><br>
</p>
<p>Best</p>
<p>Ben</p>
<p><br>
</p>
<p>        protocol = useHttps ? 'https:' : 'http:',<br>
        url = protocol + '//localhost',<br>
        connection = {},<br>
        inflight = {},<br>
        loadedTiles = {},<br>
        tileZoom = 16,<br>
        oauth = osmAuth({<br>
            url: protocol + '//localhost',<br>
            oauth_consumer_key: 'xxx',<br>
            oauth_secret: 'yyy',<br>
            loading: authenticating,<br>
            done: authenticated<br>
        }),<br>
</p>
<p><br>
</p>
<div style="color: rgb(33, 33, 33);">
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="divRplyFwdMsg" dir="ltr"><font style="font-size:11pt" face="Calibri, sans-serif" color="#000000"><b>Von:</b> Simon Poole <simon@poole.ch><br>
<b>Gesendet:</b> Sonntag, 5. Juni 2016 23:59<br>
<b>An:</b> dev@openstreetmap.org<br>
<b>Betreff:</b> Re: [OSM-dev] OSM + iD + Nominatim Setup instructions</font>
<div> </div>
</div>
<div>
<div class="moz-cite-prefix">It is probably a good idea to have a look at<br>
<pre><a class="moz-txt-link-freetext" href="http://www.asklater.com/matt/blog/2015/11/18/the-road-to-api-07/">http://www.asklater.com/matt/blog/2015/11/18/the-road-to-api-07/</a>

of which cgimap and developing it further is a key piece.

Simon 

</pre>
<br>
Am 04.06.2016 um 18:34 schrieb Stadin, Benjamin:<br>
</div>
<blockquote type="cite">Hi Bryan,<br>
<br>
thank you for these pointers. <br>
<br>
A somehwat unrelated question: The FAQ mentions cgimap. Is this performance optimized map API implementation still relevant and is it still in use? Will a production system benefit from this significantly, when it has to deal with lots of requests?
<br>
<br>
Thanks<br>
Ben
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="divRplyFwdMsg" dir="ltr"><font style="font-size:11pt" face="Calibri, sans-serif" color="#000000"><b>Von:</b> Bryan Housel
<a class="moz-txt-link-rfc2396E" href="mailto:bryan@7thposition.com"><bryan@7thposition.com></a><br>
<b>Gesendet:</b> Samstag, 4. Juni 2016 18:03:19<br>
<b>An:</b> Stadin, Benjamin<br>
<b>Cc:</b> osm-dev<br>
<b>Betreff:</b> Re: [OSM-dev] OSM + iD + Nominatim Setup instructions</font>
<div> </div>
</div>
<div>
<div class="">Hi Ben,</div>
<div class=""><br class="">
</div>
<div class="">iD’s connection to OSM is in `connection.js`:</div>
<div class=""><a href="https://github.com/openstreetmap/iD/blob/a8ac9faad8a597d81813d8effd5cc5c1a1a0a668/js/id/core/connection.js#L8-L19" class="">https://github.com/openstreetmap/iD/blob/a8ac9faad8a597d81813d8effd5cc5c1a1a0a668/js/id/core/connection.js#L8-L19</a></div>
<div class=""><br class="">
</div>
<div class="">iD’s connection to Nominatim is in the `nominatim.js` service:</div>
<div class=""><a href="https://github.com/openstreetmap/iD/blob/master/js/id/services/nominatim.js#L3" class="">https://github.com/openstreetmap/iD/blob/master/js/id/services/nominatim.js#L3</a></div>
<div class=""><br class="">
</div>
<div class="">See also from our FAQ:</div>
<div class=""><a href="https://github.com/openstreetmap/iD/blob/master/FAQ.md#can-i-use-id-with-my-own-osm-server" class="">https://github.com/openstreetmap/iD/blob/master/FAQ.md#can-i-use-id-with-my-own-osm-server</a></div>
<div class=""><br class="">
</div>
<div class="">Thanks, Bryan</div>
<div class=""><br class="">
</div>
<div class=""><br class="">
</div>
<br class="">
<div>
<blockquote type="cite" class="">
<div class="">On Jun 3, 2016, at 7:54 PM, Stadin, Benjamin <<a href="mailto:Benjamin.Stadin@heidelberg-mobil.com" class="">Benjamin.Stadin@heidelberg-mobil.com</a>> wrote:</div>
<br class="Apple-interchange-newline">
<div class="">
<div class="">Hi list,<br class="">
<br class="">
Iım on a quest to setup an own instance of OSM, altogether with Nominatim<br class="">
and iD editor. iD should communicate with this very instance of OSM and<br class="">
not with the global OSM website.<br class="">
<br class="">
While Iıll continue to digg into the code, do you have some valuable<br class="">
pointers for me about installing and configuring these three? While the<br class="">
website is documented well, this triplet is not. It doesnıt seem to be<br class="">
common (understandably, but I really need to do this).<br class="">
<br class="">
Cheers<br class="">
Ben<br class="">
<br class="">
<br class="">
_______________________________________________<br class="">
dev mailing list<br class="">
<a href="mailto:dev@openstreetmap.org" class="">dev@openstreetmap.org</a><br class="">
<a class="moz-txt-link-freetext" href="https://lists.openstreetmap.org/listinfo/dev">https://lists.openstreetmap.org/listinfo/dev</a><br class="">
</div>
</div>
</blockquote>
</div>
<br class="">
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset> <br>
<pre>_______________________________________________
dev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:dev@openstreetmap.org">dev@openstreetmap.org</a>
<a class="moz-txt-link-freetext" href="https://lists.openstreetmap.org/listinfo/dev">https://lists.openstreetmap.org/listinfo/dev</a>
</pre>
</blockquote>
<p><br>
</p>
</div>
</div>
</body>
</html>