I need to get all existing OSM types of roads from the area, and I'm searching for a simple way of doing this rather than specifying each type with "|"
I've tried to write something like this:
place_name = "Moscow"
G = ox.graph_from_place(place_name, network_type="all", custom_filter="%s")
or just
place_name = "Moscow"
G = ox.graph_from_place(place_name, network_type="all", custom_filter="highway")
However, in the first one I've received an error while the second one did not return all existing OSM values
The devil's in the details: it depends on what you mean by "all roads." If the OSMnx "all_private"
network_typeis really not permissive enough for your needs, you can always just pass in acustom_filterthat just retrieves everything tagged "highway". Refer to the OSMnx docs and Overpass QL wiki for usage details.