I have a huge osm file (>3 Gb), which doesn't run in jupyter
from pyrosm import OSM
from pyrosm import get_data
path=r"\*.osm.pbf"
osm = OSM(path)
drive_net = osm.get_network(network_type="driving")
drive_net.plot()
(memory error when i tried osm.get_network(network_type="driving")
).
So I have lat-lon coordinates set and I want to choose an area that would include all these coordinates and a little bit around them.
Is there way to extract area in python for next work with this data (final goal is route between this coordinates)?