[OSM-talk] XAPI URL for one way by ID?

80n 80n80n at gmail.com
Tue Aug 25 07:31:23 BST 2009


XAPI is intended to provide capabilities that are not available with the
standard API.  It is not intended to duplicate the API capabilities.  So the
quick answer is use the API if you want to get a way by id.

The longer answer is that it could be implemented in XAPI fairly trivially,
and was probably an oversight rather than a deliberate omission.  If it had
been implemented then the correct way to query it would have been:

/api/0.6/way[@id=xxx]

80n

On Tue, Aug 25, 2009 at 5:47 AM, Gary68 <gary at gary68.de> wrote:

> hi,
>
> on API i can GET
>
> http://www.openstreetmap.org/api/0.6/way/Id
>
> using the same string on XAPI like
>
> http://osmxapi.hypercube.telascience.org/api/0.6/way/38427403
>
> results in "firefox can't find the file..."
>
> initially I typed
>
> http://www.informationfreeway.org/api/0.6/way/23328268 (other id, ok...)
> but i was redirected.
>
> trying ...way[id=xxx] or Id=xxx didn't help either.
>
> so, question: how do i get exactly one way by id from xapi? the wiki
> page doesn't help me...
>
> thanks
>
> gerhard
> gary68
>
>
>
> _______________________________________________
> talk mailing list
> talk at openstreetmap.org
> http://lists.openstreetmap.org/listinfo/talk
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/talk/attachments/20090825/f0385b6c/attachment.html>


More information about the talk mailing list