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.
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.
Is it because I need a user session?
Best
Ben
protocol = useHttps ? 'https:' : 'http:',
url = protocol + '//localhost',
connection = {},
inflight = {},
loadedTiles = {},
tileZoom = 16,
oauth = osmAuth({
url: protocol + '//localhost',
oauth_consumer_key: 'xxx',
oauth_secret: 'yyy',
loading: authenticating,
done: authenticated
}),
________________________________
Von: Simon Poole <[email protected]>
Gesendet: Sonntag, 5. Juni 2016 23:59
An: [email protected]
Betreff: Re: [OSM-dev] OSM + iD + Nominatim Setup instructions
It is probably a good idea to have a look at
http://www.asklater.com/matt/blog/2015/11/18/the-road-to-api-07/
of which cgimap and developing it further is a key piece.
Simon
Am 04.06.2016 um 18:34 schrieb Stadin, Benjamin:
Hi Bryan,
thank you for these pointers.
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?
Thanks
Ben
________________________________
Von: Bryan Housel <[email protected]><mailto:[email protected]>
Gesendet: Samstag, 4. Juni 2016 18:03:19
An: Stadin, Benjamin
Cc: osm-dev
Betreff: Re: [OSM-dev] OSM + iD + Nominatim Setup instructions
Hi Ben,
iD's connection to OSM is in `connection.js`:
https://github.com/openstreetmap/iD/blob/a8ac9faad8a597d81813d8effd5cc5c1a1a0a668/js/id/core/connection.js#L8-L19
iD's connection to Nominatim is in the `nominatim.js` service:
https://github.com/openstreetmap/iD/blob/master/js/id/services/nominatim.js#L3
See also from our FAQ:
https://github.com/openstreetmap/iD/blob/master/FAQ.md#can-i-use-id-with-my-own-osm-server
Thanks, Bryan
On Jun 3, 2016, at 7:54 PM, Stadin, Benjamin
<[email protected]<mailto:[email protected]>>
wrote:
Hi list,
I¹m on a quest to setup an own instance of OSM, altogether with Nominatim
and iD editor. iD should communicate with this very instance of OSM and
not with the global OSM website.
While I¹ll continue to digg into the code, do you have some valuable
pointers for me about installing and configuring these three? While the
website is documented well, this triplet is not. It doesn¹t seem to be
common (understandably, but I really need to do this).
Cheers
Ben
_______________________________________________
dev mailing list
[email protected]<mailto:[email protected]>
https://lists.openstreetmap.org/listinfo/dev
_______________________________________________
dev mailing list
[email protected]<mailto:[email protected]>
https://lists.openstreetmap.org/listinfo/dev
_______________________________________________
dev mailing list
[email protected]
https://lists.openstreetmap.org/listinfo/dev