[Openstreetmap-dev] Returning the whole data instead of the id.
Immanuel Scholz
immanuel.scholz at gmx.de
Wed Feb 1 08:53:16 GMT 2006
Hi,
>> To update the intern data representation. If uploading a new node, the
>> offline
>> client has to GET this note after every PUT to update its data. With my
>> suggestion, this GET is implicit ;)
>
> Still, you have to do a GET before you do the PUT to be able to merge
> the tags. So the internal representation should be pretty updated.
Huh?
There are two cases you want to do a PUT:
- uploading new nodes.
- updating existing nodes.
For the first case, you cannot do a prior GET, since it does not exist in
the database, right?
And for the second, you do not need to catch the ID in answer, since you
already know it or else you could not update the node, right? (And I think
the server does not return anything on updates anyway...)
>> > And shouldn't the rounding effect be very small?
>> Hopeful.. yes. But that's not the point, isn't it? A difference is a
>> difference.
> Well if the difference doesn't matter then you do not need to know
> about it. But, OK, I can see a minor advantage to getting the rounded
> values.
It does matter if you compare the values you stored in your client to the
values in the server to detect changes that might be made by the user.
Ciao, Imi.
More information about the dev
mailing list