Commit Graph

7031 Commits

Author SHA1 Message Date
Dustin Carlino
2288b0d42a Add a smaller study area in Tehran.
- Procedurally generate houses there, so the automatic travel demand
  model doesn't produce totally silly patterns.
- Disable parking
- Allow vehicles to enter the intersection even when it looks like they
  might get stuck; this lets the default scenario complete without
  gridlock.
- Prebake the scenario, so a researcher can make edits and use all of
  the A/B testing data viz.

The home-to-work scenario produces laughably bogus patterns... everyone
working at Bank Sepah.
2021-09-30 14:51:56 -07:00
Dustin Carlino
5d93671ae3 Allow editing service roads that're bus-only. User reported an example in Tehran 2021-09-30 13:55:55 -07:00
Dustin Carlino
4ddfe66afd Finally clean up txt.with_bg. The last few uses were actually illegible from the default color! 2021-09-29 13:34:46 -07:00
Dustin Carlino
2905ca605d Cache the Dijkstra pathfinder for custom RoutingParams. This dramatically speeds up the bike network routing tool, since it's now restricted to just a few params. #743 2021-09-29 11:38:18 -07:00
Dustin Carlino
7672cc3ced 3-value dropdowns for routing preferences, not a crazy continuous slider. And now multiple alt routes! #743
But deduping routes isn't great; many alts mostly cover up the main route
2021-09-29 09:29:55 -07:00
Dustin Carlino
9a7b9e2b60 Click to switch routes! #743
Some quirks, but finally got this working.
2021-09-29 08:16:31 -07:00
Dustin Carlino
3cf75063c3 Prepare for switching to alt routes. #743
- workaround dragging / clicking conflicts
- make AltRouteResults wrap RouteResults
- plumb names/params around
2021-09-29 07:57:08 -07:00
Dustin Carlino
62be41f2c1 Skip alt routes if they're no different than the main. #743 2021-09-28 11:15:16 -07:00
Dustin Carlino
4ae3a1076f Show comparison stats in the alternate route's tooltip. #743 2021-09-28 09:40:45 -07:00
Dustin Carlino
9f5b51d784 Just split route code up a bit. #743 2021-09-27 14:33:33 -07:00
Dustin Carlino
40b018e1bc The last of ToggleZoomed conversion! 2021-09-27 14:21:59 -07:00
Dustin Carlino
59a6b4e546 Move over more places to ToggleZoomed 2021-09-27 14:06:03 -07:00
Dustin Carlino
83fdf1b6e6 Refactor: drawing two things, based on zoom level.
Just a small start to switching stuff to this; this pattern profilerated
EVERYWHERE.
2021-09-27 13:41:19 -07:00
Dustin Carlino
c4d38ca591 A humble start to showing an alternate, low-stress route. #743 2021-09-27 13:13:11 -07:00
Dustin Carlino
70a09659ea Recalculate mode shift when map is edited #448 2021-09-27 12:35:22 -07:00
Dustin Carlino
e8018c93e6 Disable the predict impact tab on maps without scenarios. #448 2021-09-27 12:22:58 -07:00
Dustin Carlino
2c6f218b22 Refactor a button to change maps 2021-09-27 12:16:01 -07:00
Dustin Carlino
46dd2d69fe new release 2021-09-26 14:33:24 -07:00
Dustin Carlino
bddf6e8c12 Link to the LTN tool on the web index 2021-09-26 14:02:08 -07:00
Dustin Carlino
ceed02b7d4 Browse all neighborhoods for the LTN tool [rebuild] [release] 2021-09-26 13:53:13 -07:00
Dustin Carlino
7fccf09f45 Fill in gaps in LTN rendering 2021-09-26 13:16:51 -07:00
Dustin Carlino
fbc10f2c71 Small UI adjustments to the route tool, to make info hierarchy slightly more clear.
And make the "explore" mode point to layers more clearly
2021-09-26 12:27:04 -07:00
Dustin Carlino
d365213948 Small refactor: {road, lane}.length() 2021-09-26 11:08:44 -07:00
Dustin Carlino
baa41ae5cc Prevent some crashes in the LTN tool. The way things are defined now,
can't start a neighborhood on a non-local road.
2021-09-24 15:28:43 -07:00
Dustin Carlino
8a9c71735e And the last bit of glue, toggling simple modal filters on road segments 2021-09-24 15:28:43 -07:00
Dustin Carlino
8470403d74 Start LTN tool from the command line. Add a map switcher, so it's usable
standalone.

(It might be worth splitting this out to a separate crate, but not yet)

Also refactor the fading from some of the colorer tools
2021-09-24 15:28:43 -07:00
Dustin Carlino
72e2b39301 Rank rat-run likeliness by a simple distance heuristic 2021-09-24 15:28:43 -07:00
Dustin Carlino
0e869b35c0 Detect some rat runs 2021-09-24 15:28:43 -07:00
Dustin Carlino
37c1145df4 Begin an LTN experiment. Starting from a single point, auto-discover the neighborhood and perimeter roads. 2021-09-24 15:28:43 -07:00
Dustin Carlino
a5ed6e79fb Import some new places:
- part of Sao Paulo where some new bus lanes are going in
- Tucson, for #760
- 3 parts of Bonn in Germany
2021-09-23 10:32:09 -07:00
Dustin Carlino
87dd029513 Improve one-shot map importing UI (partly motivated by #760):
- stop overwriting the one zz/overpass map by naming them differently
- allow a user-specified name too
- move the buttons to search all maps and import a new place to the top
  of the ever-growing country list
2021-09-23 10:11:48 -07:00
Dustin Carlino
f17f4c2731 The mode shift funnel. #448 2021-09-21 15:19:18 -07:00
Dustin Carlino
e571ce3703 Don't crash when elevation enabled, but layers panel hidden 2021-09-21 10:29:22 -07:00
Dustin Carlino
4782dac84b Hide layers panel by default, but also make it more easily toggleable. #743 2021-09-21 10:26:58 -07:00
Dustin Carlino
0d01906b08 Start rearranging the left panel, per Mara's design. #743 2021-09-21 10:14:16 -07:00
Dustin Carlino
632a527dbc Consolidate the route results panel on the left side, as a first step towards Mara's design. #743 2021-09-21 09:09:34 -07:00
Dustin Carlino
774c068d9e Track total mileage of mode shifted trips. Plug into a simple carbon formula! #448 2021-09-20 17:43:07 -07:00
Dustin Carlino
f06685ff20 Counting the number of mode shift trips that would make use of proposed edits. #448
Not updating when making edits yet, though!
2021-09-20 16:16:14 -07:00
Dustin Carlino
f14b7eb9e7 Calculating and showing network gaps, wiring up filters. #448 2021-09-20 14:42:02 -07:00
Dustin Carlino
3945528cf5 Start a 4th mode for the bike network tool: predicting impact, aka, mode-shift. #448
Just load the scenario and scrape data from it, to start.
2021-09-20 10:07:58 -07:00
Dustin Carlino
a93a4c3c08 Whoops, forgot the country name for #759 2021-09-19 16:27:53 -07:00
Dustin Carlino
1ec03d26ce new release 2021-09-19 12:01:35 -07:00
Dustin Carlino
db5ceb1b40 Upload Zurich data from #759 [rebuild] [release] 2021-09-19 10:05:11 -07:00
Lorenz Schmid
f27d14a285 Add Zurich (CH) city 2021-09-19 10:01:32 -07:00
Gedalia Kott
d833f82c73 Fix Issue #692:settings for metric VS imperial distance units are repsected for distance 2021-09-18 14:06:32 -07:00
Gedalia Kott
19d74b46ac simplify waypoints since much of its state can be computed lazily 2021-09-18 13:11:24 -07:00
Gedalia Kott
a851b1e52d removes position enum, abstracts the way we assign text to waypoint icons, and cleans up syntax noise 2021-09-18 13:11:24 -07:00
Gedalia Kott
dc5398fa14 update the route panel waypoint icons with the same color as the map waypoints 2021-09-18 13:11:24 -07:00
Gedalia Kott
6030c1091e refactor to remove idx and order from waypoint and instead interpret through containing vector 2021-09-18 13:11:24 -07:00
Gedalia Kott
21464f6034 complete implementation to change color of waypoints depending on the position in the list of waypoints 2021-09-18 13:11:24 -07:00