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

SteveC steve at asklater.com
Tue Jan 31 22:41:09 GMT 2006

* @ 31/01/06 10:37:43 PM immanuel.scholz at gmx.de wrote:
> 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.

Breaks the applet. JOSM and the applet should use the same parser

have fun,

SteveC steve at asklater.com http://www.asklater.com/steve/

More information about the dev mailing list