[Openstreetmap] Re: Keyval... feature request

SteveC steve at asklater.com
Wed Nov 9 16:20:41 GMT 2005


* @ 09/11/05 09:51:58 AM Nick.Whitelegg at solent.ac.uk wrote:
> Managed to write a cURL program to "put" osm-format nodes to the server. It
> worked, but I tried specifying the keyval (tags='name:Bloggs Street') and
> it wasn't taken up (requesting the node later resulted in a blank tags
> attribute).

Fixed newnode and newsegment to take tags.

Can you use 'name=' instead of 'name:' ? :-)

> Also I have a feature request.... I had a go at "put"ting multiple nodes.
> It worked, but the response from the newnode script (i.e. the IDs assigned
> to the node) was all on one line.
> 
> I would like to call the API from osm-editor to add nodes and segments to
> OSM. The way I am intending to do this is as follows:
> 
> PUT all the nodes in a track to OSM
> Receive back the assigned IDs
> Use the assigned IDs to construct segments within osm-editor
> PUT the resulting segments to OSM
> 
> However this will be much easier (from a parsing the IDs point of view) if
> each ID sent back from newnode (if you PUT multiple nodes) is on a separate
> line.

So... you're saying if you throw multiple nodes at newnode it returns a
list of multiple new id's and you want them on different lines?

Can you give me an example upload and response? newnode was never
intended to take more than one new node but I guess it works.

have fun,

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




More information about the talk mailing list