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

2016-06-13 Thread Bryan Housel
Can you share some more information about how the failure occurs?  
Any javascript errors or network errors reported in a developer console?
Maybe you are missing the port that localhost is running on?


> On Jun 10, 2016, at 9:17 PM, Stadin, Benjamin 
> <benjamin.sta...@heidelberg-mobil.com> wrote:
> 
> 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 <si...@poole.ch <mailto:si...@poole.ch>>
> Gesendet: Sonntag, 5. Juni 2016 23:59
> An: dev@openstreetmap.org <mailto:dev@openstreetmap.org>
> 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/ 
> <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 <br...@7thposition.com> <mailto:br...@7thposition.com>
>> 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
>>  
>> <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
>>  
>> <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
>>  
>> <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 
>>> <benjamin.sta...@heidelberg-mobil.com 
>>> <mailto:benjamin.sta...@heidelberg-mobil.com>> 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 <mailto:dev@openstreetmap.org>
>>> https://lists.openstreetmap.org/listinfo/dev 
>>> <https://lists.openstreetmap.org/listinfo/dev>
>> 
>> 
>> 
>> ___
>> dev mailing list
>> dev@openstreetmap.org <mailto:dev@openstreetmap.org>
>> https://lists.openstreetmap.org/listinfo/dev 
>> <https://lists.openstreetmap.org/listinfo/dev>
> 
> ___
> dev mailing list
> dev@openstreetmap.org <mailto:dev@openstreetmap.org>
> https://lists.openstreetmap.org/listinfo/dev 
> <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-10 Thread Stadin, Benjamin
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 <si...@poole.ch>
Gesendet: Sonntag, 5. Juni 2016 23:59
An: dev@openstreetmap.org
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 <br...@7thposition.com><mailto:br...@7thposition.com>
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 
<benjamin.sta...@heidelberg-mobil.com<mailto:benjamin.sta...@heidelberg-mobil.com>>
 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<mailto:dev@openstreetmap.org>
https://lists.openstreetmap.org/listinfo/dev




___
dev mailing list
dev@openstreetmap.org<mailto: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-05 Thread Simon Poole
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 <br...@7thposition.com>
> *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
>> <benjamin.sta...@heidelberg-mobil.com
>> <mailto:benjamin.sta...@heidelberg-mobil.com>> 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 <mailto:dev@openstreetmap.org>
>> https://lists.openstreetmap.org/listinfo/dev
>
>
>
> ___
> dev mailing list
> dev@openstreetmap.org
> https://lists.openstreetmap.org/listinfo/dev




signature.asc
Description: OpenPGP digital signature
___
dev mailing list
dev@openstreetmap.org
https://lists.openstreetmap.org/listinfo/dev


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 <br...@7thposition.com>
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 
<benjamin.sta...@heidelberg-mobil.com<mailto:benjamin.sta...@heidelberg-mobil.com>>
 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<mailto: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