I'm new to OSMnx / Overpass queries. I'm trying to pull data on rail networks in global cities. I'm using the script in Python below to pull rail data in London, for example.
There are a number of sub-categories within railway infrastructure (eg, rail, light rail, tram, etc). I wondered if there is any way to see the kind of tags/sub categories used within the data I have pulled.
import osmnx as ox
G = ox.graph_from_point((y,x),
distance = 20000,
distance_type = 'bbox',
infrastructure = 'way["railway"~"rail"]',
network_type = 'none',
)
ox.plot_graph(G)
I know I could also individually go through each subcategory using 'way["railway"~"subway"]'
for example, but I wondered if there was way of somehow query the actual multigraph to figure this out?