Re: [OSM-talk] Night of the living maps 07.02.2012 - Avoid API congestion

2012-02-08 Thread Roland Olbricht
> Better yet,
> maybe make it an advanced setting string (maybe up to 5 of them or
> something?) so that user choices are persisted across restarts.

It has taken some days, but now in the plugin mirrored_downlaod the selected 
URL is saved as user setting and persists over a JOSM restart.

Best regards,

Roland

___
talk mailing list
talk@openstreetmap.org
http://lists.openstreetmap.org/listinfo/talk


Re: [OSM-talk] Night of the living maps 07.02.2012 - Avoid API congestion

2012-02-02 Thread Toby Murray
On Thu, Feb 2, 2012 at 11:59 AM, Roland Olbricht  wrote:
>> And here are some problems:
>
> Thank you, Toby, for reporting these issues. I've just released a new version
> which solves the problems:

Excellent!

I actually still can't close the URL dialog on this computer but I
could when I tried it on another one earlier so I think it is my
window manager. Come to think of it... I can't close the JOSM
geotagged picture viewer either. Both of them just doesn't have the
minimize/maximize/close window decorations on it. I blame gnome 3.

Anyway, thanks for making this.

Toby

___
talk mailing list
talk@openstreetmap.org
http://lists.openstreetmap.org/listinfo/talk


Re: [OSM-talk] Night of the living maps 07.02.2012 - Avoid API congestion

2012-02-02 Thread Roland Olbricht
> And here are some problems:

Thank you, Toby, for reporting these issues. I've just released a new version 
which solves the problems:

> 1) Activating this plugin seems to overwrite the default JOSM download
> action so the only way to start using the normal API again is to
> remove the plugin which doesn't seem entirely good.

Fixed.

> 2) after I bring up the URL dialog, there is no way to dismiss it. I
> can also bring up multiple copies at the same time

Fixed.

> 3) downloading via this plugin does not trigger JOSM's "Draw
> boundaries of downloaded data" feature.

I've fixed it in the way that the plugin uses the requested bounding box to 
draw boundaries.

> Suggestion: Why require source changes and a recompile to change the
> URL? Just make the JComboBox editable.

Done. I think I'll embed these URLs somehow in the settings, but I haven't yet 
figured out how.
 
Cheers,

Roland

___
talk mailing list
talk@openstreetmap.org
http://lists.openstreetmap.org/listinfo/talk


Re: [OSM-talk] Night of the living maps 07.02.2012 - Avoid API congestion

2012-02-01 Thread Toby Murray
On Wed, Feb 1, 2012 at 4:36 PM, Roland Olbricht  wrote:
> Dear JOSM users,
>
> Mapping events have in the past often triggered an API block from the admins
> due to too much download traffic. See e.g.
> http://wiki.openstreetmap.org/wiki/API_usage_policy
>
> To avoid that, I've just started the JOSM plugin "mirrored_download". This
> plugin allows to download OSM data into JOSM from both instances of the
> Overpass API and thus avoids download requests to the main API at all.
>
> As an extra bonus to all plugins users, Overpass API is almost always faster
> than the main API. As both Overpass servers have still only a load of 5%-15%
> even at peak hours, there is much room for more download traffic.
>
> Just install the plugin (under preferences > plugins > mirrored_download),
> restart JOSM and then use "Mirrored download > Download from OSM..." instead
> of "File > Download from OSM...".
>
> If you run a readonly API yourself, feel free to add that one in the JOSM SVN
> at
> josm/plugins/mirrored_download/src/mirrored_download/UrlSelectionDialog.java
> after line 101.

Awesome. I have seen several conversations on IRC about this kind of
functionality and I had considered trying something but you beat me to
it :)

Suggestion: Why require source changes and a recompile to change the
URL? Just make the JComboBox editable. Or maybe 2 or 3 text fields
that are pre-populated but can be changed by the user. Better yet,
maybe make it an advanced setting string (maybe up to 5 of them or
something?) so that user choices are persisted across restarts. I
tried making the JComboBox editable and put in the URL of my private
jxapi server and it worked fine. I may actually start using this on a
regular basis.

And here are some problems:
1) Activating this plugin seems to overwrite the default JOSM download
action so the only way to start using the normal API again is to
remove the plugin which doesn't seem entirely good.
2) after I bring up the URL dialog, there is no way to dismiss it. I
can also bring up multiple copies at the same time
3) downloading via this plugin does not trigger JOSM's "Draw
boundaries of downloaded data" feature.

After updating to the latest osmosis and jxapi code (thanks for the
help, Ian!) I have confirmed that #3 is actually the fault of Overpass
API, not of the plugin. Overpass API does not include a  tag
at the beginning of the response like the normal API (and as of a few
minutes ago, the jxapi) does. While this is not a HUGE problem, it
will definitely lead to some confusion and probably a little
duplicated data somewhere.

Toby

___
talk mailing list
talk@openstreetmap.org
http://lists.openstreetmap.org/listinfo/talk


[OSM-talk] Night of the living maps 07.02.2012 - Avoid API congestion

2012-02-01 Thread Roland Olbricht
Dear JOSM users,

Mapping events have in the past often triggered an API block from the admins 
due to too much download traffic. See e.g.
http://wiki.openstreetmap.org/wiki/API_usage_policy

To avoid that, I've just started the JOSM plugin "mirrored_download". This 
plugin allows to download OSM data into JOSM from both instances of the 
Overpass API and thus avoids download requests to the main API at all.

As an extra bonus to all plugins users, Overpass API is almost always faster 
than the main API. As both Overpass servers have still only a load of 5%-15% 
even at peak hours, there is much room for more download traffic.

Just install the plugin (under preferences > plugins > mirrored_download), 
restart JOSM and then use "Mirrored download > Download from OSM..." instead 
of "File > Download from OSM...".

If you run a readonly API yourself, feel free to add that one in the JOSM SVN 
at
josm/plugins/mirrored_download/src/mirrored_download/UrlSelectionDialog.java 
after line 101.

Best regards,

Roland Olbricht

___
talk mailing list
talk@openstreetmap.org
http://lists.openstreetmap.org/listinfo/talk