Dustin Carlino
476e0e101f
easy wins: make BuildingID u32, not usize. maps from 680MB to 676MB.
...
scenarios from 500MB to 458MB.
considered going down to u16, but pretty sure there are already maps
with >65k buildings
2020-07-06 17:55:02 -07:00
Dustin Carlino
fbff30a869
fix some epsilon issues with deadends and walking turns to get entire
...
krakow map to import. closes #143
2020-07-06 14:24:31 -07:00
Dustin Carlino
cac35319b2
handle off-side bike lanes on oneway roads. fixes #140
2020-07-06 14:03:22 -07:00
Dustin Carlino
1dcc7456db
stop attempting to parse OSM turn restriction types. not doing anything useful with them yet anyway, and it causes friction importing new maps. fixes #142
2020-07-06 13:26:23 -07:00
Dustin Carlino
82345767c9
store a bitset of access restrictions per road. derive zones from this only for editing and pathfinding. this unblocks editing zones
2020-07-06 13:09:49 -07:00
Dustin Carlino
c3858b9cdd
mark construction lanes appropriately. this broke when adapting to the new tagging on the west seattle bridge, but there are some roads tagged this way in krakow.
...
(not regenerating all the maps yet, expecting to do more work on this
today)
2020-07-06 07:43:42 -07:00
Dustin Carlino
5427d8ea40
also express lane type changes using the new approach
2020-07-05 14:04:49 -07:00
Dustin Carlino
6e8eef8d09
start refactoring how edits are validated. need to deal with lane types
...
next
2020-07-05 13:20:19 -07:00
Dustin Carlino
804896cfda
relax some old requirements for bus stops not being on the same lane. i
...
dont remember what the old issue was. this fixes some light rail stops
downtown, because multiple stops are along a single light rail lane.
2020-07-05 12:34:46 -07:00
Dustin Carlino
8b7658c48f
dont crash when closing a traffic signal with disconnected sidewalks
2020-07-04 18:08:54 -07:00
Dustin Carlino
181de12409
woops, 72d0171300
broke signal editor by
...
crashing if you were missing a turn. dont validate in the middle of
editing. still seeing a problem with traffic signal -> construction
2020-07-04 17:51:45 -07:00
Dustin Carlino
3eecdeddff
fix some two-step pathfinding bugs that were crashing south seattle
2020-07-04 09:37:22 -07:00
Dustin Carlino
505311a93f
improve the signal synchronization a bit for #8 . hardcode a few small
...
intersections to make the downtown map make more progress. make it
easier to copy OSM node IDs.
2020-07-04 08:53:13 -07:00
Dustin Carlino
628ee0fa86
dirt simple method to swap the order of pairs of two-phase signals to
...
try to synchronize them better. towards #8 . not regenerating screenshots
because it's late and there'll be more screenshot churn tomorrow anyway
2020-07-03 21:55:54 -07:00
Dustin Carlino
3a7a75e011
for the heuristically generated traffic signals, handle roads with
...
sidewalks on only one side. part of #8
2020-07-03 19:50:31 -07:00
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