Exemple #1
0
def test_parse_network_osm_query_raises():
    query_template = '[out:json][timeout:{timeout}]{maxsize};(way["highway"]' \
                     '{filters}({lat_min:.8f},{lng_max:.8f},{lat_max:.8f},' \
                     '{lng_min:.8f});>;);out;'
    query_str = query_template.format(lat_max=37.8, lng_min=-122.252,
                                      lat_min=37.8, lng_max=-122.252,
                                      filters=load.osm_filter('walk'),
                                      timeout=180, maxsize='')
    data = load.overpass_request(data={'data': query_str})
    with pytest.raises(RuntimeError):
        load.parse_network_osm_query(data)
Exemple #2
0
def dataframes2(query_data2):
    return load.parse_network_osm_query(query_data2)