Dustin Carlino
575dcfb782
snap bus vehicle/sidewalk positions to the correct side of the road and
...
a more appropriate lane. also fix #122
2020-07-03 19:00:20 -07:00
Dustin Carlino
ac88a96f61
use a different icon for train stops
2020-07-03 17:49:36 -07:00
Dustin Carlino
56cb59c3ac
rip out gtfs code, cutover to osm. will revisit this later; gtfs and osm probably disagree on routes and stops, and gtfs has schedule. but for now, just osm.
2020-07-03 17:33:32 -07:00
Dustin Carlino
0dc42d7e19
use bus stops from OSM instead of gtfs. expose the stop name and the
...
driving position in the info panel. some issues with the driving
positions, but this is the way forward for light rail.
2020-07-03 15:22:13 -07:00
Dustin Carlino
1175826f3d
scrape bus info from OSM into the RawMap layer. don't use it yet.
2020-07-03 12:00:42 -07:00
Dustin Carlino
ec2411fb8b
experiment with isochrones. nothing yet.
2020-07-02 13:41:24 -07:00
Dustin Carlino
0a499f65e2
start changing access restrictions for an entire zone. found a way to
...
represent the edits. no support yet for changing what roads are in a
zone.
2020-07-02 12:15:37 -07:00
Dustin Carlino
ebe1f486f7
flatten some of the map building code
2020-07-02 10:48:05 -07:00
Dustin Carlino
3acec91f51
get berlin import working for #119 . just had to allow a few more turn
...
restrictions previously unencountered and deal with weird geometry.
and add some hints to docs for #118 .
2020-07-02 09:56:48 -07:00
Dustin Carlino
519bceaac0
organize lots of map modules under objects/
2020-07-02 09:05:56 -07:00
Dustin Carlino
148547c622
reorganize code in map_model, since map.rs is huge.
...
- move Map to lib.rs, so all its private members can be directly
populated by submodules
- move edits-related stuff to edits.rs
- move raw->map stuff to make/mod.rs
2020-07-02 08:56:09 -07:00
Dustin Carlino
72d0171300
fix #111 by delaying constructing ControlTrafficSignal from edits. also
...
fix time warp screen issue after the UpdateType changes [rebuild]
2020-07-01 19:34:15 -07:00
Dustin Carlino
54b4bd318e
way simpler approach for two-step walking paths. fixes the silly loops.
2020-07-01 11:12:47 -07:00
Dustin Carlino
9b42d27e85
finally enable two-step pathfinding for pedestrians too. the weird hack
...
making this work: pedestrians will sometimes add an extra little
back-and-forth in their paths
2020-06-30 14:52:57 -07:00
Dustin Carlino
2c7440b03f
start representing access restrictions by mode
2020-06-30 13:15:57 -07:00
Dustin Carlino
2b4bf1172b
start a UI for modifying access restrictions of zones. mostly just the
...
skeleton right now
2020-06-30 12:16:08 -07:00
Dustin Carlino
2b50e7969c
refactor position
2020-06-29 20:55:36 -07:00
Dustin Carlino
71b8e16448
another stab at two-step walking pathfinding. prevents all crashes, but
...
pretty much nothing being found
2020-06-29 20:40:41 -07:00
Dustin Carlino
2e1612c3db
try to handle walking around private zones too. gluing the paths
...
together is buggy, giving up for now and leaving disabled
2020-06-29 16:44:45 -07:00
Dustin Carlino
694b70c438
try something simpler for two-step pathfinding. maybe some code duplication, but way easier to reason about. i think this is now correct; just need equivalent for walking trips
2020-06-29 13:50:05 -07:00
Dustin Carlino
fafda7963b
handle more cases for two-step pathfinding, but still many not working.
...
need to pull the main path search in
2020-06-29 12:03:34 -07:00
Dustin Carlino
4cd674ca35
start two-step pathfinding for starting/ending in private zones. not
...
handling interior trips or walking yet. failing to find a path in many
cases, but it's a first step.
2020-06-29 11:30:00 -07:00
Dustin Carlino
a103c84a40
cluster private roads into zones. don't surface in the UI yet [rebuild]
2020-06-28 18:11:13 -07:00
Dustin Carlino
c97bd0fe4b
some cleanup after #106 . unbreak importer
2020-06-28 11:13:35 -07:00
phimuemue
a675e72d25
Avoid collect et al ( #106 )
...
* Avoid unconditional collect in get_lane_types
* Introduce Road::children(fwds)
Simplifies direction-aware lane retrieval.
* Simplify all_lanes
* Avoid unneeded collect
* Avoid some Vec copying
* Avoid unconditional collect
* Avoid some collect
* Avoid clone
* Avoid collect
* Avoid collect
* Avoid collect
* Avoid collect
* Avoid collect
* Avoid collect
Co-authored-by: Dustin Carlino <dabreegster@gmail.com>
2020-06-28 11:00:09 -07:00
Dustin Carlino
bb3da1f8eb
Make a very primitive form of adaptive traffic signal phases. It should
...
be easier to write better policies now; this mostly does the work of
changing the map model and UI to handle variable timing. A small step
towards #91
2020-06-28 10:20:47 -07:00
Dustin Carlino
2733d3e791
pull down fresh OSM data, with some fixes along mlk. handle west seattle
...
bridge being tagged differently. also note some streets in CHAZ/CHOP
disappeared, because they're tagged as pedestrian ways currently. also
forced to pull down fresh traffic signal data to keep lakeslice running
2020-06-27 22:27:03 -07:00
Dustin Carlino
ae6c099bd5
start bringing in private broadmoor roads. omit from the CH, so trips will just fail without a path for now.
2020-06-27 16:19:48 -07:00
Dustin Carlino
2881341b63
make parking lots hideable. dont snap parking and sidewalk hints to
...
light rail. not regenerating all the maps again yet to avoid some churn
2020-06-26 17:02:14 -07:00
Dustin Carlino
eab0988bd8
hello light rail! just import the tracks, represent as a new lane type.
...
make clipping handle starts and ends separately
2020-06-26 16:47:18 -07:00
Dustin Carlino
d254d49591
discard way less buildings, and match driveways away from intersections
...
more carefully
2020-06-25 16:34:44 -07:00
Dustin Carlino
bc6482c522
include camera state and edits in the crash report. would make it easier to repro #98 and #72
2020-06-25 09:02:50 -07:00
Dustin Carlino
e586760ef7
autosave was a lie. actually do it after any edit, not just when loading new edits
2020-06-24 12:06:06 -07:00
Dustin Carlino
626636ece7
remove turn lookup. have always found myself using the src lane. edits invalidated it anyway
2020-06-23 18:36:45 -07:00
Dustin Carlino
684bf72dde
recalculate stop signs when lanes change; construction->driving was
...
breaking the west seattle bridge. fixes #68 . include a built-in proposal
to fix the bridge. ;)
2020-06-23 17:46:35 -07:00
Dustin Carlino
24835cf673
skip OSM ways with no points, and ignore junction areas. fixes #84
2020-06-23 14:32:27 -07:00
Dustin Carlino
eedf80bfef
tiny tweaks from final testing:
...
- cutscene wording
- elide traffic tab on parking lanes
- dont crash when traffic signal data needs fixing, just warn more
loudly. this lets lanes near some signals actually be modified
2020-06-21 11:38:34 -07:00
Dustin Carlino
5a9fb4ceef
starting work on a brute-force traffic signal heuristic. organizing
...
existing code better.
2020-06-19 13:07:42 -07:00
Dustin Carlino
dd84087398
cleaning up more layers. got rid of ::scaled finally. refactoring
...
percentile handling. got rid of old color scales
2020-06-16 12:51:06 -07:00
Dustin Carlino
458b44bef9
tearing down Colorer::scaled in favor of a newer, simpler thing. also
...
switching more layers to a monochrome gradient. just a first step...
2020-06-16 11:38:43 -07:00
Dustin Carlino
64fba66e42
add links to proposal write-ups and adjust the UI for that page
2020-06-14 13:04:28 -07:00
Dustin Carlino
16bc96c401
try adjusting the offstreet spots in downtown to be a fraction of the
...
initial demand
2020-06-13 15:38:04 -07:00
Dustin Carlino
7cc8c4724a
start reviving the edit mode changelist. time is a flat circle?
2020-06-12 18:21:30 -07:00
Dustin Carlino
269bdc9171
dont force reset from midnight in survivor mode!
2020-06-11 16:30:31 -07:00
Dustin Carlino
863593708a
tool to copy OriginalLane to clipboard. also fix wasm build breakage [rebuild]
2020-06-07 16:25:42 -07:00
Dustin Carlino
c2563ae15f
fix the escort tutorial stage once and for all. fixes #52 [rebuild]
2020-06-07 12:39:14 -07:00
Dustin Carlino
8de9ba0536
stop grabbing parking lot capacity
2020-06-06 14:37:09 -07:00
Dustin Carlino
65b500509e
make peds use front paths for parking lots too
2020-06-06 14:04:09 -07:00
Dustin Carlino
a643f039ad
most of the sim changes to use parking lots! need to work on pedestrians
...
using the front paths
2020-06-06 13:42:39 -07:00
Dustin Carlino
bf426bb6d1
the last spawner bug: handle parking blackholes
2020-06-03 13:45:29 -07:00