[OSM-dev] why does api not return nodes that are referenced from ways?
jburgess777 at googlemail.com
Tue Feb 5 23:41:23 GMT 2008
On Wed, 2008-02-06 at 01:08 +0200, Timo Lindfors wrote:
> It seems that
> contains a way
> <way id='10660210' timestamp='2007-10-31T21:45:41Z'>^M
> <nd ref='20576167'/>^M
> <nd ref='94154319'/>^M
> <nd ref='94154321'/>^M
> <tag k='highway' v='tertiary'/>^M
> <tag k='name' v='Fairchildes Road'/>^M
> that references node 94153236 but that node is not defined in the
> reply. The specification at
> howevery says that it'd return
> "any nodes outside the bounding box that the ways may reference."
The node 94153236 has been deleted. According to our data-integrity
rules it should not be possible to delete a node which is referenced in
a way but it has been seen in the past due to bugs in parts of the API.
If you request the same way from the main /way API you'll see that it
double checks that the nodes have not been deleted before returning the
way response (if they have been deleted then they don't get returned).
They do however get returned if you ask for way/N/history.
More information about the dev