On 26 May 2011 14:57, Ian <ian.d...@gmail.com> wrote:
>> JXAPI allows multiple predicates, but they are currently OR'd rather than
>> AND'd like I meant them to be. The above query is akin to saying "give me
>> all relations with route=bus OR ref=010 OR in bbox=...".
>
> I just pushed some code out (and deployed to jxapi.osm.org) that fixes this.
> You can specify multiple tag predicates and they will be AND'd:
> [route=bus][ref=010] = (route=bus) AND (ref=010)
> [route=bus|foo][ref=010] = ((route=bus) OR (route=foo)) AND (ref=010)

hmm, interesting. when i run this:
http://jxapi.osm.org/xapi/api/0.6/relation%5Broute=bus%5D%5Bref=010%5D%5Bbbox=174.327,-37.236,175.324,-36.519%5D

i get two relations, one in nz (as hoped for) and one in munich

is it ignoring the bbox predicate? or have i got the numbers wrong?

-- 
robin

http://bumblepuppy.org/blog/?p=237 - government bill to remove basic
human rights in NZ

_______________________________________________
talk mailing list
talk@openstreetmap.org
http://lists.openstreetmap.org/listinfo/talk

Reply via email to