[OSM-dev] Read-only API calls, fair usage

Paul Norman penorman at mac.com
Tue Feb 20 19:19:22 UTC 2018


On 2/20/2018 2:56 AM, Frederik Ramm wrote:
> Hi,
>
> On 20.02.2018 10:51, MichaƂ Brzozowski wrote:
>> You can use changeset replication with ChangesetMD to query your own DB.
> I was tempted to respond the same, but I imagine the idea is that as
> soon as the user clicks on the "I have fixed this" button, MapRoulette
> checks what has been committed... and replication could mean up to one
> minute delay.

There's no guarantee that the read-only changeset call will go to the 
same backend server as the write call. 
https://github.com/openstreetmap/iD/issues/1646 shows the problem caused 
by iD not parsing the diff response and relying on redownloading.

In the normal editing workflow a 5s (or even 60s) delay is not an issue. 
Someone is likely to spend longer than that in their editor changing data.

I would say this is a reasonable use of the OSM API, as it is part of 
editing, but is not the best for technical reasons. If you don't need up 
to the second changeset data, you can consume the diff stream every 
minute. If you do need up to the second data, then the API doesn't 
guarantee it.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/dev/attachments/20180220/8d1d69ff/attachment.html>


More information about the dev mailing list