On Wed, Feb 1, 2012 at 4:36 PM, Roland Olbricht <roland.olbri...@gmx.de> 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.
<a couple hours later>
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 <bounds> 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

Reply via email to