-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
'Zoom level 3': Represent movement in the disaggregated desire lines in A/B Street scenario #32
Comments
Heads-up @dabreegster this is for you - hope the data format is good. Tried to 'assign' you but I realised you weren't in the repo, just sent an invite. Cannot wait to see what the Go Dutch scenario looks like in A/B Street! |
(Note: the numbers in there are not intended to be realistic, although they do show a shift to walking and cycling, they're just there for vis purposes for now.) |
The format looks good! In A/B Street-speak, I'll convert this into two different scenarios, a "baseline" and "go Dutch." A single scenario is fixed, deterministic input about everything, including mode. I'll create one person for each of the counts, having them take one trip in the morning from the development to the remote destination at a random time between 7-10am, then return 5-7pm, same mode both ways. |
One person per trip sounds good. These approximate real commute patterns so setting off in the morning (e.g. with a normal distribution of arrival around 9am) could be good, but just getting them moving along those trajectories will be great to see! |
Got something started, but few issues.
|
Great you've made a start @dabreegster, quickfire answers to your questions:
I think @joeytalbot updated the case study area: https://github.com/cyipt/actdev/blob/main/data-small/great-kneighton/great-kneighton-study-area.geojson I do think there is great merit in showing flows that go to a border intersection though, opening the door to larger OD datasets (I think all of the flows are in that updated area though).
Not intentional, just a result of this quickfire solution (in fact if you've any ideas on refactoring let me know, could do a quick screenshare/brainstorm later this evening): https://github.com/ITSLeeds/od/blob/master/R/aggregate.R#L73-L93. For now I'm happy for them to be disconnected, see that as a known bug in the input data, noted here: #32 (comment) No comment on the other points, sounds like it's a good use case for testing the import code. |
Heads-up @dabreegster the data at https://github.com/cyipt/actdev/blob/main/data-small/great-kneighton/desire_lines_disag.geojson is now updated and should now show the same number of people leaving buildings in both scenarios. Sorry for the slightly arbitrary column names btw, any advice on naming conventions/schemas welcome! |
Thanks for the quick responses! I'm getting back to work now, should have the scenarios imported in abst by your morning. |
@joeytalbot: https://github.com/cyipt/actdev/blob/main/data-small/study_area_trumpington-test.geojson and https://github.com/cyipt/actdev/blob/main/data-small/great-kneighton/great-kneighton-study-area.geojson are the same currently -- is this deliberate? Should we have a study area covering all of https://github.com/cyipt/actdev/blob/main/data-small/great-kneighton/desire_lines_disag.geojson at minimum? In the meantime, I'll add snapping to borders. |
…undary to the nearest border. Now the desire lines for cyipt/actdev#32 import without errors.
…f OD is cleaner.
The two scenarios are now imported on native (haven't deployed to web yet). After starting them, nothing will happen till 7am. The population layer (hotkey l then x) shows everyone start in the new site (snapped to residential buildings that're already in OSM there): The baseline scenario has 212 cancelled trips that failed to simulate, most due to routing issues caused by how the area is imported. I'll look into resolving some of those next. |
Well noticed @dabreegster. I renamed the test file so we can have standardised names for each study area. I might as well delete the test file now. Only desire lines that lay within the study area were selected, but that was before the desire lines were disaggregated, so yes it would be a good idea to expand the study area now to encompass the full disaggregated set of of desire lines. But the other thing is that there are also large numbers of desire lines to more distant destinations outside the study area. If these could eventually be shown, snapping to borders of the study area, it would improve the visualisation by giving a complete picture of the movements that take place - of course, a high proportion of the journeys to more distant destinations will be by car. |
@Robinlovelace how are the disaggregated destinations chosen? Currently in Cambridge we have lots of journeys to a small audi dealership next to a park and ride site, but none to the large Biomedical Campus which is a major employment hub. |
For the Cambridge study site, major employment sites in the area are:
|
Hi guys, yes the destinations are very much a first pass based on Rust code shared by @dabreegster and implemented in this script (note it's in the tests folder to denote that it's still in testing mode): https://github.com/cyipt/actdev/blob/main/code/tests/disaggregate.R Can you reproduce the results @joeytalbot ? Suggested changes to that welcome, perhaps based on updated OSM tags. |
The data has been generated not for realism but to demonstrate the ability to go from OD data generated in R into AB Street. For improvements to the data (not the structure, which is on topic here) I suggest creating a new issue. Also see #34 which is essential a report of a bug in the data (but not the structure of the data). Important to keep issues modular, specific and actionable. |
…r endpoints based on the allowed modes of each border. Without this, some driving trips snap to the cycleway next to a road. 212 cancelled trips (that immediately failed) down to 140.
For the moment, this is the simplest way to allow foot traffic. This breaks down in places like https://www.openstreetmap.org/way/49207928, where the road gets an inferred sidewalk and the separate cycleway on each side is bidirectional with shoulders on each side. Down to 71 cancelled trips in the baseline for cyipt/actdev#32.
We're done with this now / we switched to generating the scenarios from R instead. The notes about picking destinations more realistically remain relevant, but we can find them in this issue later if needed. |
👍 |
I think this would involve:
Data here as geojson: https://github.com/cyipt/actdev/blob/main/data-small/great-kneighton/desire_lines_disag.geojson
It has integer counts by mode for cycling, walking and driving. Just needs to be converted into the .json format as per #29 suspect it will be quicker for you to do that than me.
The text was updated successfully, but these errors were encountered: