[OSM-dev] xapi - find node by id
Emilie Laffray
emilie.laffray at gmail.com
Thu Sep 2 15:45:56 BST 2010
On 2 September 2010 15:36, bernhard zwischenbrugger <bz at datenkueche.com>wrote:
> Hi all
>
> Is there a way to get a node from xapi if I know the id?
>
> I tryed this:
> http://xapi.openstreetmap.org/api/0.6/way[id=8136261]<http://xapi.openstreetmap.org/api/0.6/way%5Bid=8136261%5D>
> and this.
> http://xapi.openstreetmap.org/api/0.6/way/8136261
>
> Both don't give a result.
>
Hello,
if you know the id, you can get the information directly on osm website
without xapi. Xapi is mostly use to search specific tags. When you have the
id, you can make use of the main api.
http://www.openstreetmap.org/api/0.6/way/8136261
You gave the example of a way. A node syntax would be
http://www.openstreetmap.org/api/0.6/node/x
Emilie Laffray
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/dev/attachments/20100902/336dd41d/attachment.html>
More information about the dev
mailing list