Commit Graph

4527 Commits

Author SHA1 Message Date
Dustin Carlino
9be94f9a70 don't spawn bikes on tiny lanes, it causes queue spillover 2020-07-20 10:38:56 -07:00
Dustin Carlino
10f8ddde48 better errors for updater failures. #213 2020-07-20 09:46:47 -07:00
Dustin Carlino
f91a73e12a tighten up polygon_with_holes API 2020-07-20 09:41:47 -07:00
Dustin Carlino
50b75b732f finally have proper circle outlines 2020-07-20 09:31:12 -07:00
Dustin Carlino
042145ef1b start cleaning up bus info panels. the delay between stop measurement has never been clear, and i'm not sure if it's what we even want to measure. and use route shortname in titles. 2020-07-20 09:14:41 -07:00
Dustin Carlino
50b0df61c0 add another gridlock problem 2020-07-20 08:45:13 -07:00
Dustin Carlino
ec9ba28891 stop using simsearch for matching road names. it has odd behavior when the query is just a few charactes, and it often has the wrong results after typing most of a name. just use simple string containment for now. 2020-07-20 08:36:32 -07:00
Mateusz Konieczny
66287ccda6
further work on #154 - better trip generator (#211)
* further work on #154 - better trip generator

use single trip mode selection function
(still extremely primitive, based on a distance)
border-to-border traffic is now more varied
rewrite TODOs

* stylistic improvements
2020-07-20 08:26:16 -07:00
Mateusz Konieczny
c588bb5ec4
feature request in form of adding notes about gridlock (#210) 2020-07-20 07:43:36 -07:00
Dustin Carlino
7d85f308a9 new release 2020-07-19 15:36:05 -07:00
Dustin Carlino
2f2245e90f add service roads for buses. closes #203 [rebuild] 2020-07-19 15:29:13 -07:00
Dustin Carlino
a837c79500 better errors when failing to spawn. it's either the starting lane is
too small for the vehicle, or there's no appropriate lane type at the
border. closes #206
2020-07-19 13:33:36 -07:00
Dustin Carlino
68d3c5b340 intersection delay is broken down by agent type, not trip mode 2020-07-19 13:22:08 -07:00
Dustin Carlino
233b662bfa actually count transit passengers in throughput analytics 2020-07-19 13:10:24 -07:00
Mateusz Konieczny
3c9bb0f706
add transit traffic for #154 (#207)
for now solely cars, next step would be having function deciding on trip mode based on distance and using it also here
note #206, this code may be buggy though at least sometimes transit traffic works
next potential step - some distribution of transit traffic over day
2020-07-19 12:36:39 -07:00
Dustin Carlino
56b2914e9a click a commuter block to make it sticky, so you can fiddle with filters 2020-07-19 12:33:04 -07:00
Dustin Carlino
4f8f659dfb widget replacement keeps margins from the old 2020-07-19 11:28:12 -07:00
Dustin Carlino
9e4dbc9c98 filter commuter patterns by mode. optionally exclude borders. 2020-07-19 11:06:28 -07:00
Mateusz Konieczny
f9a606fab7
More docs (#208)
* select away ones that are neither implemented nor requiring implementation

* describe issue of stupid lane selection
2020-07-19 10:48:44 -07:00
Mateusz Konieczny
ee64824b9b
add notes about what is causing gridlock (#202) 2020-07-19 09:49:58 -07:00
Michael Kirk
2a8a2ccf2d
Commuter Patterns: building stats (#201)
Shows summary counts of building types within the selected block

Note: I changed the empty state from "Nothing selected" to "None
selected" to avoid an undesirable shift in the commuter view.

I think the shift is because the height of the text widget seems to vary
with the height of the characters _in_ the text widget. So the low
hanging tail of "g" was causing "Nothing" to render taller than "None".
2020-07-18 15:14:25 -07:00
Dustin Carlino
b15e493291 index trips by block. double memory, but worth the speedup when mousing over 2020-07-18 14:25:39 -07:00
Dustin Carlino
7ad7c7c477 speed up block merging 2020-07-18 13:50:16 -07:00
Dustin Carlino
a84e1c2c74 add border intersections to commute viz 2020-07-18 13:39:44 -07:00
Dustin Carlino
b6a8bdd7e1 merge adjacent residential blocks into larger groups. slow
implementation, but the result looks nice
2020-07-18 13:09:10 -07:00
Dustin Carlino
68561170bd cache current selected block and update trip count in the scale 2020-07-18 11:34:13 -07:00
Michael Kirk
c9aadc0be1
Commuter Patterns: remove arrow overlay mode (#200)
Commuter patterns offered two different styles to visualize the
source/destination of travellers.

1. Arrows points to the source/destination
2. Heat map showing relative density of the source/destination

The arrow mode was visually cluttered and yet didn't communicate as much
info as the heatmap, so we're getting rid of it.
2020-07-18 11:09:09 -07:00
Dustin Carlino
5ce64cce7f use the color gradient for blocks, and prepare to show count for currently selected block 2020-07-18 10:48:36 -07:00
Dustin Carlino
6d50c574f4 filter commutes by departure time 2020-07-18 10:25:44 -07:00
Dustin Carlino
c645876ea2 find some excuse to include one of holly's characters in a cutscene.
need to rework the dialogue more.
2020-07-18 09:46:21 -07:00
Dustin Carlino
e87ff1cbef organize the commuter code before hackathon [rebuild] 2020-07-18 08:04:24 -07:00
Dustin Carlino
523eb690f5 refactor tripinfo struct 2020-07-18 07:46:58 -07:00
Dustin Carlino
6d27547b6a prep for hackathon. make the block map a sandbox dashboard, work off of a live sim. [rebuild] 2020-07-18 07:22:18 -07:00
Dustin Carlino
db00c18536 use AgentType, not TripMode, in throughput 2020-07-17 16:39:16 -07:00
Dustin Carlino
c08fd4ae7e UsingBike trips always start at a building 2020-07-17 15:56:58 -07:00
Dustin Carlino
e06faa3c33 make an AgentType enum, stop abusing TripMode. a small first step,
showing agent meters properly
2020-07-17 15:13:36 -07:00
Dustin Carlino
d9d4e5448e consolidate some gridlock problems/solutions in markdown, for #114 2020-07-17 13:38:09 -07:00
Dustin Carlino
a86fb5c73d upgrade to rust 1.45 after fixing an issue in fastpaths [rebuild] 2020-07-17 12:54:14 -07:00
Dustin Carlino
1c30132b4a start a fresh attempt at explaining how stuff works, using https://github.com/rust-lang/mdBook. start with travel demand (#154) 2020-07-17 10:56:38 -07:00
Dustin Carlino
3a1ef311a7 use my new best friend earcutr to make sure people dont get lost when editing a traffic signal 2020-07-17 10:00:45 -07:00
Dustin Carlino
ba3e918f33 slightly less overwhelming bus route dashboard 2020-07-17 09:34:25 -07:00
Dustin Carlino
4a05979b9f fix label position for light rail 2020-07-17 09:10:45 -07:00
Dustin Carlino
aad5796e0b make sure polygon area is positive. the building classification was
multiplying negatives and winding up with quite a few people...
2020-07-16 21:15:44 -07:00
Dustin Carlino
1c39de50f7 use earcutr for polygon triangulation. this finally allows for
multipolygons with holes!
2020-07-16 15:33:01 -07:00
Dustin Carlino
ccf213ded9 fix pioneer square station snapping. rust-geo's FindClosest has a bug.
>_<
2020-07-16 13:22:05 -07:00
Dustin Carlino
82dd1fd01a spawn a new bus for every route every hour 2020-07-16 11:58:09 -07:00
Dustin Carlino
1d89d4b85f tie population count to planning areas in berlin, for #119 [rebuild] 2020-07-16 11:34:46 -07:00
Dustin Carlino
e2d478340b bring in planning area KML for berlin, #119 2020-07-16 11:15:22 -07:00
Dustin Carlino
8a70e105e8 make buses actually start/end at borders [rebuild] 2020-07-16 10:11:43 -07:00
Dustin Carlino
d15a842e43 Revert "new rust version. finally strip_prefix is available!"
This reverts commit d16ac9713a.

I'm seeing mysterious brokenness with fast_paths:
https://github.com/easbar/fast_paths/issues/20
Reverting so I can get work done
2020-07-16 08:59:16 -07:00