How do you load a local file into OSMNX to create a graph? We have a roadnetwork of a secret and private area that is not integrated in OSMNX, but we want to use the nice possibilities that OSMNX has.
I created from a shapefile a geodataframe with geopandas and if you have a geodataframe of the edges too you can use this function: enter image description here
But there has to be an easier way I think, I read also on a forum with this way some data will be less accurate and I want to provide a script that is reusable when they upgrade the roadnetwork again. So if somebody knows a way how to load a local xml or shapefile into OSMNX that would be great.
Kind regards,
Damiaan