Commit Graph

48 Commits

Author SHA1 Message Date
Dustin Carlino
d371ba2765 Adjusting relative problems layer
- preserve selected types a little better
- show ratio
2022-05-15 10:44:29 +01:00
Dustin Carlino
213df7fa82 Some slight widgetry API changes in support of another project, which is -- I am only mildly ashamed to say -- is depending on it 2022-05-13 16:47:58 +01:00
Dustin Carlino
4ca0c24a60 Add tooltips to the pedestrian crowding layer 2022-05-12 14:10:49 +01:00
Dustin Carlino
a229bf9385 Add a layer showing pedestrian density. 2022-05-12 13:33:33 +01:00
Dustin Carlino
66eed93753 When adding a sidewalk to a road, get the direction correct. Was previously failing for one-way roads, and causing pathfinding to crash. 2022-05-10 16:19:51 +01:00
Dustin Carlino
d313bf089c When a secondary map is loaded for debugging, keep the scenarios in
sync, and add a keybinding to synchronize time.
2022-05-10 16:01:24 +01:00
Dustin Carlino
43c946a2b6 Fix crashing tutorial after Seattle OSM updates. #914 2022-05-07 15:20:42 +01:00
Dustin Carlino
596bd5d04d Problem plot per lane too, sadly mostly by copying code 2022-05-07 13:04:09 +01:00
Dustin Carlino
586ee1c96d Show live time-series of problems per intersection 2022-05-07 13:04:09 +01:00
Dustin Carlino
3426d2e917 Refactoring problem type code in preparation for new info panel tabs 2022-05-06 15:31:37 +01:00
Dustin Carlino
15111dcf9d Recalculate prebaked data for Seattle. I'm seeing a crash in the Arboretum and a diff in Montlake since the last update in 3d738e93e8. Not sure how things got out of sync -- possibly the S3 bug just synced. 2022-05-06 12:46:16 +01:00
Dustin Carlino
1325c45013 Change how the relative problems layer works. Color roads and
intersections, using the same technique as the relative throughput
layer. Add tooltips to show specific before/after counts. This is much
easier to understand than #905
2022-05-06 12:03:27 +01:00
Dustin Carlino
e66112b3ea Click trip problems to time-warp. Useful for debugging spurious diffs in greater detail 2022-05-03 16:08:22 +01:00
Dustin Carlino
0fd39db440 Fix crash when drawing problems before edits. Need to use the unedited map 2022-05-03 13:45:00 +01:00
Dustin Carlino
738f50f5b8 Prevent pedestrians from endlessly cutting off cars at a stop sign by
limiting how long a crowd can enter a crosswalk. #517

Removing Tehran from prebaking; it starts gridlocking. I didn't
investigate why; making SMP realistic unfortunately takes priority right
now.
2022-05-01 17:02:14 +01:00
Dustin Carlino
ae8d6f6cf2 Spinner widgets for distances are weird, because the step size probably shouldn't depend on the user's metric/imperial setting. Just flip the prior hack and always use meters for the spinners. Sorry not sorry USA users. 2022-04-30 15:32:24 +01:00
Dustin Carlino
aff8d8ceef Automatically change metric/imperial based on the map loaded. 2022-04-30 15:24:18 +01:00
Dustin Carlino
00c34ab8f6 Add proposed sidewalk widths for SMP, mapped by Gabriela.
Also add a little edit mode tool to auto-fix sidewalk direction, to
avoid a crash in pathfinding! We should enforce this eventually.
2022-04-30 15:00:51 +01:00
Dustin Carlino
19447b5a26 Create a layer to show where problems are occurring more or less. #859 2022-04-29 14:08:52 +01:00
Dustin Carlino
4b446c754e Make leader agents call ahead before starting a turn. Don't make use of
this yet. #517

Dump the intersection state to JSON too for the UI debugger, to inspect
easily.
2022-04-28 12:50:23 +01:00
Dustin Carlino
dff4e17b28 Let the user make edits to switch between marked/unmarked crosswalks! 2022-04-26 16:42:37 +01:00
Dustin Carlino
5890e600d3 Refactor pedestrian radius 2022-04-24 09:38:19 +01:00
Dustin Carlino
651a1f571a Slow down pedestrians when they're on a crowded sidewalk. #859 2022-04-23 21:18:26 +01:00
Dustin Carlino
9b4abae174 Fix a treachurous bug that was crashing the simulation, first uncovered
by chance in #870.

A vehicle exits a driveway and blocks a lane on its way out. When we try
to clear the static blockage, the queue calculation recurses to resolve
distances on the queue where that vehicle is entering. But since we
temporarily don't have the car in the list of cars (for the borrow
checker), it was crashing.

One of those "2 hours to figure out, 30 seconds to fix" bugs.
2022-04-23 20:03:28 +01:00
Michael Kirk
d76bb3fbbd update to geo 0.20.1 2022-04-22 18:13:36 +01:00
Dustin Carlino
237f00d1cc Centralize logic in TransitRoute::all_path_requests. Stop repeating it
in the sim transit layer. Simplify the sim transit state accordingly.

Along the way, temporarily sacrifice tracking the paths taken by transit
passengers -- it wasn't correct before.

Not regenerating maps yet.
2022-04-17 11:13:05 +01:00
Dustin Carlino
d386948a13 Import GTFS for São Paulo 2022-04-14 15:19:29 +01:00
Dustin Carlino
d6dc4332b0 Make the LTN impact UI easier to see. Draw less stuff, only focus on roads with changes [rebuild] [release] 2022-03-28 11:13:17 +01:00
Dustin Carlino
33eac8cba8 Transition the old path debugger to using the split Pathfinder for
custom RoutingParams. #852
2022-03-26 09:39:54 +00:00
Dustin Carlino
1126972fdd For roads we predict to get more/less traffic from LTN interventions,
click them and explore specific routes.

UI needs plenty of work.

And the results show plenty of spurious changes not explained by new
filters.
2022-03-25 12:07:23 +00:00
Dustin Carlino
4e626b72a9 Just delete unused magnifying glass code from Ungap [rebuild] [release] 2022-03-20 16:53:51 +00:00
Dustin Carlino
36ef6d6b34 When merging blocks, try reversing the order of one. Otherwise, the
current mix of clockwise and counter-clockwise blocks don't combine.
2022-03-16 12:47:08 +00:00
Dustin Carlino
477783e430 Simplify the combinatorial explosion of Panel sizing APIs 2022-03-08 09:33:49 +00:00
Dustin Carlino
04f00b4c8a Move the LTN app header to a separate top panel. 2022-03-08 09:33:49 +00:00
Dustin Carlino
8880f41692 Center the camera in the LTN tool and others. And simplify the logic for
the game; it was based on the old bouncey splash screen concept.
2022-03-05 19:01:05 +00:00
Dustin Carlino
99747ff34e Make the LTN tool more robust to broken blockfinding. #841
Try the cheap validation first. If it breaks, fall back to the expensive
version.
2022-03-05 17:21:54 +00:00
Dustin Carlino
1ac25cc39a Find thick dual carriageway roads that overlap, and cut their width in
half.
2022-03-05 11:03:23 +00:00
Dustin Carlino
b07177c21a Fix crash in the LTN and Ungap pathfinding tool, introduced in
2bf7ce232a
2022-02-24 09:47:10 +00:00
Dustin Carlino
82dff217a5 When the lasso tool is active, change the panel to explain the interaction 2022-02-24 09:33:12 +00:00
Dustin Carlino
78e4fc3f80 Make the lasso tool (buried in an old experiment in story mapping) a bit more usable, and lift it to widgetry 2022-02-24 09:33:12 +00:00
Dustin Carlino
9c0aedb575 When we can help it, don't shift road polylines twice. #860 2022-02-23 18:46:42 +00:00
Dustin Carlino
7bb6132726 Open OSM from map_editor
(Move open_browser to widgetry)
2022-02-23 14:43:58 +00:00
Dustin Carlino
01e7c9c584 WIP 2022-02-23 14:31:31 +00:00
Dustin Carlino
d141a2a810 Upgrade all geo dependencies! No behavioral difference 2022-02-22 16:45:49 +00:00
Dustin Carlino
2e8d3970f5 Split out a CLI command to prebake one scenario for #861 2022-02-22 08:55:40 +00:00
Dustin Carlino
6590320571 Prebake results for São Miguel Paulista, so we can use all the differential dataviz #861 2022-02-21 21:16:49 +00:00
Dustin Carlino
3531966052 Remove old tool for exporting roads to streetmix and shared-row formats. Nobody's ever used them, and now we're making https://github.com/a-b-street/osm2lanes that could have a translation layer if the need ever comes up. Closes #386 2022-02-20 19:17:43 +00:00
Dustin Carlino
e16e151b6a Organize the 7 runnable apps under a subdirectory. #844 [rebuild] [release] 2022-02-19 18:17:08 +00:00