[OSM-dev] XAPI: Any difference between 'map' and '*' and between '[bbox=...]' and '?bbox=...'?
Philipp Borgers
borgers at mi.fu-berlin.de
Wed Jun 15 11:31:38 BST 2011
The map query is functionally identical to the tag
query /api/0.6/*[bbox=left,bottom,right,top]
Quote from the wiki page ;)
XAPI is an extended api which implements a bit more than the normal api.
Perhaps there is some redundancy but I think this is not a problem.
Keeping the application compatible with older clients is a good move.
Perhaps you can add a comment to the wiki to make everything a bit more
understandable?
Regards
Philipp
On Wed, 2011-06-15 at 12:21 +0200, Stefan Keller wrote:
> Hi
>
> In XAPI [1] what is the difference
> * between a [bbox=...] and ?bbox=...
> * and between a 'map' and a '*' request ?
> and if the represent equal requests, which one is preferred?
>
> These examples return identical results:
> * 'map' request with bbox as URL parameter:
> http://jxapi.openstreetmap.org/xapi/api/0.6/map?bbox=34.679,32.039,34.721,32.08
> * 'all' ('*') request with bbox as 'predicate':
> http://jxapi.openstreetmap.org/xapi/api/0.6/*[bbox=34.679,32.039,34.721,32.081]
>
> This seems redundant and reading the XAPI [1] wiki page I don't really
> see any clear distinction.
> If yes, I would suggest to deprecate the 'map' and the '?bbox=...' parameters.
>
> Yours, S.
>
> [1] http://wiki.openstreetmap.org/wiki/Xapi
>
> _______________________________________________
> dev mailing list
> dev at openstreetmap.org
> http://lists.openstreetmap.org/listinfo/dev
More information about the dev
mailing list