diff --git a/examples/edinburgh/config.json b/examples/edinburgh/config.json index 1fe1e1c..ca2ba6e 100644 --- a/examples/edinburgh/config.json +++ b/examples/edinburgh/config.json @@ -1,6 +1,6 @@ { "requests": { - "description": "Existing home to school cycling trips in Edinburgh, from NPT data. The origins and destinations are both building centroids, since not every zone has a school.", + "description": "Existing home to school cycling trips in Edinburgh, from NPT data. The origins and destinations are both building centroids, since not every zone has a school. Elevation is included.", "pattern": { "BetweenZones": { "zones_path": "zones.geojson", @@ -12,5 +12,6 @@ }, "cost": "Distance", "uptake": "GoDutchPCT", - "lts": "BikeOttawa" + "lts": "BikeOttawa", + "elevation_geotiff": "UK-dem-50m-4326.tif" } diff --git a/examples/edinburgh/setup.py b/examples/edinburgh/setup.py index 750f5c8..ee3a332 100644 --- a/examples/edinburgh/setup.py +++ b/examples/edinburgh/setup.py @@ -23,6 +23,14 @@ def makeOSM(): ) +def makeElevation(): + download( + url="https://play.abstreet.org/dev/data/input/shared/elevation/UK-dem-50m-4326.tif.gz", + outputFilename="input/UK-dem-50m-4326.tif.gz" + ) + run(["gunzip", "input/UK-dem-50m-4326.tif.gz"]) + + def makeOrigins(): # Not every zone has a school, so for now, just use all buildings for both # origins and destinations @@ -80,6 +88,7 @@ def makeOD(): checkDependencies() run(["mkdir", "-p", "input"]) makeOSM() + makeElevation() makeOrigins() makeDestinations() makeZones()