NREL / hive

HIVE™ is a mobility services research platform
https://nrelhive.readthedocs.io/en/latest/
BSD 3-Clause "New" or "Revised" License
22 stars 9 forks source link

Automatically download road network if it doesn't exist #166

Closed nreinicke closed 1 year ago

nreinicke commented 1 year ago

Right now we require a road network file as an input to a simulation. We could check to see if a road network file is specified and then, if not, we could try to just download the road network that's needed from a geofence file (I know we just talked about removing it but I think it could make sense in this case, possibly renaming it to something like extent).

robfitzgerald commented 1 year ago

something like

if road_network is not None:
  # read network file
elif extent is not None:
  # call osmnx with extent
else: 
  throw IOError("some useful explanation about networks and extents here")

bearing in mind, OSMNx should remain an optional dependency of HIVE.

nreinicke commented 1 year ago

Closed by #175