[OSM-dev] Datamodel relation/member constraints

Frederik Ramm frederik at remote.org
Sun Jun 1 00:56:29 BST 2008


Hi,

>> Next to this; can a user explicitly trust the sequence 1,2,1,3; or is
>> this currently not guaranteed?
> 
> This is not guaranteed. Relations are unordered. As far as I can tell 
> currently the API returns relations with the member nodes sorted by ascending 
> ID first and then the member ways sorted by ascending ID

Correct. I would be happy though if writers of editors etc. could act as 
if the relation members were ordered, and thus upload them in the same 
sequence they were downloaded. This gives us the option of switching to 
an ordered mode later if we think it is necessary, without having to 
change editors.

Bye
Frederik




More information about the dev mailing list