cyipt / actdev

ActDev - Active travel provision and potential in planned and proposed development sites
https://actdev.cyipt.bike
7 stars 3 forks source link

Add parameter for targetting scenario in A/B Street #150

Closed mvl22 closed 3 years ago

mvl22 commented 3 years ago

Robin requests that A/B Street needs a parameter so that we can target the starting scenario from the web GUI.

@dabreegster

dabreegster commented 3 years ago

There'll be a new release uploaded by the time you see this. You can pass --actdev_scenario=go_active in the URL now. Any other value defaults to the baseline scenario; if you want to always pass the URL param, --actdev_scenario=base is consistent with the naming in abst, but any other value is fine too.

The URL in abst automatically updates to include the current viewport, making it easier to share the URL. @Robinlovelace, should we do the same for the scenario? There are many other things we could capture in the URL, like the current simulation time, layer open, agent being followed, etc. Any thoughts where we ought to draw the line?

dabreegster commented 3 years ago

Confirming the new release works: https://actdev.cyipt.bike/abstreet/?--actdev=kidbrooke-village&--cam=13.2/51.45672/0.01572&--actdev_scenario=go_active

Robinlovelace commented 3 years ago

Impressive! I guess the only remaining step is to pass that actdev_scenario param from the web app.