Just read the XML data in your SW and “push
” every new <nd ref="...">
to the array of nodes of the way.
Neg. number. You need to provide placeholder ids for all new objects. Don’t forget that the entry in the way node list corresponds to a separate, pre-created, node object (which must have the same placeholder id).
1 Like
I’ve never looked at the detail of this until now as I’ve always relied on very capable pre-made software, but it looks to me like the relevant documentation is here:
- format of the changes submitted: OsmChange
- documentation of interaction with the server and response: API v0.6 > Diff upload