<filename>integration-test/630-bus-routes-z12.py
# block between mission & 6th and howard & 5th in SF.
# appears to have lots of buses.
# https://www.openstreetmap.org/way/88572932 -- Mission St
# https://www.openstreetmap.org/relation/3406710 -- 14X to Daly City
# https://www.openstreetmap.org/relation/3406709 -- 14X to Downtown
# https://www.openstreetmap.org/relation/3406708 -- 14R to Mission
# https://www.openstreetmap.org/relation/3000713 -- 14R to Downtown
# ... and many more bus route relations

z, x, y = (16, 10484, 25329)

# test that at least one is present in tiles up to z12
while z >= 12:
    assert_has_feature(
        z, x, y, 'roads',
        { 'is_bus_route': True })
    z, x, y = (z-1, x/2, y/2)

# but that none are present in the parent tile at z11
assert_no_matching_feature(
    z, x, y, 'roads',
    { 'is_bus_route': True })

<filename>integration-test/630-bus-routes-z12.py
# block between mission & 6th and howard & 5th in SF.
# appears to have lots of buses.
# https://www.openstreetmap.org/way/88572932 -- Mission St
# https://www.openstreetmap.org/relation/3406710 -- 14X to Daly City
# https://www.openstreetmap.org/relation/3406709 -- 14X to Downtown
# https://www.openstreetmap.org/relation/3406708 -- 14R to Mission
# https://www.openstreetmap.org/relation/3000713 -- 14R to Downtown
# ... and many more bus route relations

z, x, y = (16, 10484, 25329)

# test that at least one is present in tiles up to z12
while z >= 12:
    assert_has_feature(
        z, x, y, 'roads',
        { 'is_bus_route': True })
    z, x, y = (z-1, x/2, y/2)

# but that none are present in the parent tile at z11
assert_no_matching_feature(
    z, x, y, 'roads',
    { 'is_bus_route': True })

# block between mission & 6th and howard & 5th in SF. # appears to have lots of buses. # https://www.openstreetmap.org/way/88572932 -- Mission St # https://www.openstreetmap.org/relation/3406710 -- 14X to Daly City # https://www.openstreetmap.org/relation/3406709 -- 14X to Downtown # https://www.openstreetmap.org/relation/3406708 -- 14R to Mission # https://www.openstreetmap.org/relation/3000713 -- 14R to Downtown # ... and many more bus route relations # test that at least one is present in tiles up to z12 # but that none are present in the parent tile at z11