osmnx is a Python tool that allows you to download maps from OpenStreetMap and work with them as Networkx graphs. I could, for example get the the street map of a LA using the following command:
osmnx.graph_from_place('Los Angeles, CA, USA', network_type='drive')
Now I am trying to download a district within Tehran, Iran. Using the name 'Tehran, Iran' didn't help much and the result is wrong. However, the city boundary has an OSM ID of 8775292 as found in the link below:
https://www.openstreetmap.org/relation/8775292
So, is there a way to give OSMNx the boundary ID instead of giving it the name for query?
Thanks!