Using REST API (or XAPI) to get map data only by bounding box

Hi,

How can I get content (nodes, ways, relations) surrounded by bounding atributes without getting ANY other XML content. which is located outside the bounding box ? Is there any REST API option to do this ? Obviously I can make Web Service client algorithm, but in large areas it is problematic. I read http://wiki.openstreetmap.org/wiki/API_v0.6 and didn’t found any solution.

Thanks,
Greg

No, I don’t think so. You will need to get the data including parts outside your bbox and then post process it to exclude everything you don’t want.

P.S. Just in case you aren’t aware of it and might be planning to use the api for non editing purposes, I’d like to point to the acceptable usage policy of the api server ( http://wiki.openstreetmap.org/wiki/API_usage_policy )