Re: [OSM-dev] OSM + iD + Nominatim Setup instructions

2016-06-04 Thread Paul Norman

On 6/4/2016 9:34 AM, Stadin, Benjamin wrote:


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?


cgimap is still used in production. It is far faster when dealing with 
requests which return lots of data, e.g. big map calls, relation/full 
calls. It is also faster on small calls but you're less likely to notice 
that.


___
dev mailing list
dev@openstreetmap.org
https://lists.openstreetmap.org/listinfo/dev


Re: [OSM-dev] OSM + iD + Nominatim Setup instructions

2016-06-04 Thread 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 
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 
>
 wrote:

Hi list,

I^1m 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^1ll 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^1t seem to be
common (understandably, but I really need to do this).

Cheers
Ben


___
dev mailing list
dev@openstreetmap.org
https://lists.openstreetmap.org/listinfo/dev

___
dev mailing list
dev@openstreetmap.org
https://lists.openstreetmap.org/listinfo/dev


Re: [OSM-dev] OSM + iD + Nominatim Setup instructions

2016-06-04 Thread Bryan Housel
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 
>  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
> dev@openstreetmap.org
> https://lists.openstreetmap.org/listinfo/dev

___
dev mailing list
dev@openstreetmap.org
https://lists.openstreetmap.org/listinfo/dev


Re: [OSM-dev] OSM + iD + Nominatim Setup instructions

2016-06-04 Thread Stadin, Benjamin
That was what my question was about, though I wasn't clear enough maybe.

Thanks for your insights,
Ben

Von: Tom Hughes 
Gesendet: Samstag, 4. Juni 2016 11:05:23
An: Stadin, Benjamin; dev@openstreetmap.org
Betreff: Re: OSM + iD + Nominatim Setup instructions

On 04/06/16 09:19, Stadin, Benjamin wrote:

> But there seem to be some places where the Nominatim URL is hardcoded
> instead of using NOMINATIM_URL.

I'm not sure what that has to do with anything I wrote?

I mean I said nothing about integrating your instance of the rails port
with your instance of nominatim, mostly because I had no idea whether or
not it was configurable!

> For example:
> https://github.com/openstreetmap/openstreetmap-website/blob/master/lib/nomi
> natim.rb

Sure it's a bug - fixes welcome.

> https://github.com/openstreetmap/openstreetmap-website/blob/master/test/htt
> p/nominatim.yml
> (That’s a test case, but still why shouldn’t it use a configured URL to
> test the actual instance)

Well a test shouldn't be touching a live server at all. and indeed it
doesn't because that file is actual controlling the mock server that is
used in testing - it lists the URLs and the responses that will be faked
when those URLs are hit.

So the test environment will always need to use NOMINATIM_URL pointing
at the real server as that is the URL that the mocks respond to.

> Also all locale yamls (though that is less important I’d say):
> https://github.com/openstreetmap/openstreetmap-website/blob/7b96de31f7842ca
> f13da40dc71ff2d33146ad60b/config/locales/sk.yml

Again, bugs, though probably a bit harder to fix.

Tom

--
Tom Hughes (t...@compton.nu)
http://compton.nu/
___
dev mailing list
dev@openstreetmap.org
https://lists.openstreetmap.org/listinfo/dev


Re: [OSM-dev] OSM + iD + Nominatim Setup instructions

2016-06-04 Thread Tom Hughes

On 04/06/16 09:19, Stadin, Benjamin wrote:


But there seem to be some places where the Nominatim URL is hardcoded
instead of using NOMINATIM_URL.


I'm not sure what that has to do with anything I wrote?

I mean I said nothing about integrating your instance of the rails port 
with your instance of nominatim, mostly because I had no idea whether or 
not it was configurable!



For example:
https://github.com/openstreetmap/openstreetmap-website/blob/master/lib/nomi
natim.rb


Sure it's a bug - fixes welcome.


https://github.com/openstreetmap/openstreetmap-website/blob/master/test/htt
p/nominatim.yml
(That’s a test case, but still why shouldn’t it use a configured URL to
test the actual instance)


Well a test shouldn't be touching a live server at all. and indeed it 
doesn't because that file is actual controlling the mock server that is 
used in testing - it lists the URLs and the responses that will be faked 
when those URLs are hit.


So the test environment will always need to use NOMINATIM_URL pointing 
at the real server as that is the URL that the mocks respond to.



Also all locale yamls (though that is less important I’d say):
https://github.com/openstreetmap/openstreetmap-website/blob/7b96de31f7842ca
f13da40dc71ff2d33146ad60b/config/locales/sk.yml


Again, bugs, though probably a bit harder to fix.

Tom

--
Tom Hughes (t...@compton.nu)
http://compton.nu/

___
dev mailing list
dev@openstreetmap.org
https://lists.openstreetmap.org/listinfo/dev


Re: [OSM-dev] OSM + iD + Nominatim Setup instructions

2016-06-04 Thread Stadin, Benjamin
But there seem to be some places where the Nominatim URL is hardcoded
instead of using NOMINATIM_URL.

For example:
https://github.com/openstreetmap/openstreetmap-website/blob/master/lib/nomi
natim.rb

https://github.com/openstreetmap/openstreetmap-website/blob/master/test/htt
p/nominatim.yml
(That’s a test case, but still why shouldn’t it use a configured URL to
test the actual instance)

Also all locale yamls (though that is less important I’d say):
https://github.com/openstreetmap/openstreetmap-website/blob/7b96de31f7842ca
f13da40dc71ff2d33146ad60b/config/locales/sk.yml

Ben


Am 04.06.16, 08:36 schrieb "Tom Hughes" unter :

>On 04/06/16 00:54, Stadin, Benjamin wrote:
>
>> 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.
>
>If you install your own copy of the website then the builtin iD should
>do that automatically.
>
>So really it's only OSM and Nominatim you are setting up.
>
>Tom
>
>-- 
>Tom Hughes (t...@compton.nu)
>http://compton.nu/

___
dev mailing list
dev@openstreetmap.org
https://lists.openstreetmap.org/listinfo/dev


Re: [OSM-dev] OSM + iD + Nominatim Setup instructions

2016-06-04 Thread Tom Hughes

On 04/06/16 00:54, Stadin, Benjamin wrote:


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.


If you install your own copy of the website then the builtin iD should 
do that automatically.


So really it's only OSM and Nominatim you are setting up.

Tom

--
Tom Hughes (t...@compton.nu)
http://compton.nu/

___
dev mailing list
dev@openstreetmap.org
https://lists.openstreetmap.org/listinfo/dev