[OpenStreetMap] #4692: Errors when getting large relation history

Frederik Ramm frederik at remote.org
Sat Nov 17 19:15:41 GMT 2012


Hi,

On 17.11.2012 18:09, OpenStreetMap wrote:
>   So currently, the only way to consult history of such relations is to
>   iterate on each version until the API returns a version not found ?

It is usually better to first retrieve the relation normally (which gets 
you the current version number) and then go backwards. For most use 
cases involving the need to go back to a previous version, knowing the 
last 5 versions or so is totally sufficient.

>   Is there hope to see some of my requests [1] concerning summarized history
>   data implemented in the next API ?

I certainly agree that something needs to be done about the problem of 
not being able to access object history for those objects with a long 
history, and your ideas could be one way to address the issue. I'm not 
sure if this needs to be in the core API though; since these requests 
are always read-only and not time critical, it could be possible to 
satisfy them from a secondary service. Such a service could be built 
today, without waiting for anything or anyone, least of all a future API 
version.

Bye
Frederik

-- 
Frederik Ramm  ##  eMail frederik at remote.org  ##  N49°00'09" E008°23'33"



More information about the rails-dev mailing list