[Openstreetmap-dev] Returning the whole data instead of the id.

Immanuel Scholz immanuel.scholz at gmx.de
Tue Jan 31 22:37:43 GMT 2006


Hi list,

is anyone of the client coders using the feature, that any PUT is returning 
the newly created id of the thing just putted?

It's because I want to change this to return the whole data created this way. 
So as example instead of just returning "12345", putting a new node will 
return "<osm version='0.2'><node id='56237' lat='23.42' lon='12.34' 
tags='imi=cool' />" instead.

This would break code that read the current id out of the answer stream (which 
would need to be changed to read the id attribute from the xml answer). It is 
cool for all offline editors, since the lat/lon may have been changed (due 
rounding). This could also enable the server to do some filtering or 
processing on all change inputs and have the clients to update their view of 
the data without the need of an additional GET-request.

What do you say?


Ciao, Imi.




More information about the dev mailing list