Dustin Carlino
faedffae99
finally flushed out one of the common crashes: shifting some car bodies
...
to make wheels breaks sometimes. just skip the wheels.
2020-07-11 17:10:36 -07:00
Dustin Carlino
d8dea10f29
woops, flipped a sign and broke some outlines
2020-07-11 16:08:33 -07:00
Dustin Carlino
0c283d0da7
finish up the grand geom stabilization with ring and some docs.
...
regenerated everything from scratch. one effect is more parking
blockface gets matched onto border roads, but that's fine.
2020-07-11 16:05:26 -07:00
Dustin Carlino
07ed1fec95
more polyline work... get rid of Warn<>. extremely spammy and hasn't
...
been helpful in ages.
2020-07-11 15:17:16 -07:00
Dustin Carlino
f8b8c501ae
tighten up more PL scariness
2020-07-11 14:51:25 -07:00
Dustin Carlino
cce624edd8
start the big one: Polyline::new
2020-07-11 13:42:19 -07:00
Dustin Carlino
0593aa52d9
more caution in Line API
2020-07-11 13:05:34 -07:00
Dustin Carlino
98c6f46c78
the first real big change: Line::new always returns Option
2020-07-11 12:37:38 -07:00
Dustin Carlino
0dd3199f7a
cut down variations of pt2d<->gps. mostly we want to forcibly convert.
...
possible semantic change: soundcast border matching now includes ALL
borders, even if the center is slightly OOB
2020-07-11 12:02:12 -07:00
Dustin Carlino
0f11da79bd
start replacing assertions and panics with results or better error
...
messages. covering all of the easy things in the geom crate.
2020-07-11 11:35:03 -07:00
Dustin Carlino
95626d5b64
fix rendering crash
2020-07-08 15:57:19 -07:00
Dustin Carlino
9a27f6d3dd
cleanup the old abstutil Error
2020-07-07 17:09:51 -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
ec2411fb8b
experiment with isochrones. nothing yet.
2020-07-02 13:41:24 -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
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
bfd1b9c190
rotate labels on buses, now that i figured out how to do it reasonably on roads
2020-06-26 11:31:27 -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
Tim Newsome
4ccd13c8e1
Round time to 10 minutes in jump to dialog ( #100 )
...
This allows me to quickly and precisely jump to the same time every
time.
2020-06-24 20:55:18 -07:00
Dustin Carlino
07bf9725d4
use a regularly spaced marking for construction instead of the weird
...
stripes. clean up the hack in the shader
2020-06-24 08:36:47 -07:00
Dustin Carlino
2630fabf83
link to fixed windows build, and make a few small adjustments
2020-06-23 12:57:06 -07:00
Dustin Carlino
506077a7b7
fix road labels. enable them by default!
2020-06-20 15:26:54 -07:00
Dustin Carlino
4dd2835cd4
fix most of the angle inversion mess!
2020-06-19 20:25:47 -07:00
Dustin Carlino
c66564dd9d
try out a new style for road labels
2020-06-19 20:12:25 -07:00
Dustin Carlino
26cdde056c
fix throughput and delay max_x and disable comparison by default
2020-06-17 15:05:31 -07:00
Dustin Carlino
a86ef0fa12
start revamping layers. for delay, have zoomed and unzoomed views. always use gradients.
2020-06-15 12:51:32 -07:00
Dustin Carlino
1401c1b415
prototype a lasso select
2020-06-04 17:18:57 -07:00
Dustin Carlino
ea6a5c0f9d
encode parking spots cheaply, compute up-front
2020-06-03 11:50:46 -07:00
Dustin Carlino
b69d155812
clipping parking aisles to the lots, in most cases
2020-06-03 10:51:59 -07:00
Dustin Carlino
b9da2f2fdc
pick up parking aisles that cross the polygon
2020-06-02 19:31:20 -07:00
Dustin Carlino
d4e5acd4e3
improve parking space inference. expose the estimated count
2020-06-02 14:43:07 -07:00
Dustin Carlino
b497a9926f
start rendering parking aisles. lots of issues to cleanup, but VERY
...
solid start
2020-06-02 13:30:37 -07:00
Dustin Carlino
30eafea94a
start representing OSM parking lots in the map model and rendering layer
2020-06-01 12:51:14 -07:00
Dustin Carlino
855d8f4d22
update glutin, winit, glium now that a fix for linux startup time is upstreamed in glutin. and a few other packages too. ditch geo-offset dependency, since it uses old versions and isn't being used yet
2020-06-01 09:18:17 -07:00
Dustin Carlino
ff40eb2d4c
use lttb to downsample points for jump-to-time. looks better and is
...
simpler to reason about!
2020-05-27 12:17:45 -07:00
Dustin Carlino
c092fa45ab
the foot is mightier than the meter... saddest change I'll commit today
2020-05-26 08:43:28 -07:00
Dustin Carlino
59c407c44e
slightly improving uber turn group icons. this is hard.
2020-05-20 15:54:26 -07:00
Dustin Carlino
ddf6de5f59
stop dependending directly on serde_derive
2020-05-19 15:06:32 -07:00
Dustin Carlino
ee35ff79b9
dont needlessly load files in importer
2020-05-17 14:19:45 -07:00
Dustin Carlino
1a24fc7fab
refactor osmosis polygon reader
2020-05-17 09:49:03 -07:00
Dustin Carlino
a0a7cb1c4e
start cleaing up thruput stats. remove the ability to change window size
2020-05-15 14:25:10 -07:00
Dustin Carlino
95a0f2f620
working on west seattle
2020-05-14 12:03:19 -07:00
Dustin Carlino
9f78766ee6
try brian's signals. making them the default to get used to them, but
...
not updating screenshot goldenfiles yet
2020-05-13 15:31:29 -07:00
Dustin Carlino
cd3100e561
refactor some polyline methods for dashed rendering
2020-05-13 14:35:59 -07:00
Dustin Carlino
db7c276e91
select a path of roads
2020-05-09 10:34:52 -07:00
Dustin Carlino
819aa179d7
add map to study mt baker area. extending lakeslice had some problems.
...
updated blockface, so some other spurious little changes
2020-05-08 13:52:19 -07:00
Dustin Carlino
f1ac0dccc0
new city: Barranquilla
2020-05-02 15:43:19 -07:00
Dustin Carlino
077035aacb
better offstreet parking rendering: don't jitter the parking icon, face
...
the correct direction unparking, make the driveway line extend from the
sidewalk line
2020-04-27 17:29:20 -07:00
Dustin Carlino
275d1f846b
make remote trips work properly. plumb through events for them.
2020-04-25 16:47:32 -07:00
Dustin Carlino
65ef5d4149
make LonLat implement Eq
2020-04-24 21:36:52 -07:00
Dustin Carlino
a04c072aed
upgrade to rust 1.43, remove some now redundan imports [rebuild]
2020-04-23 09:22:04 -07:00
Dustin Carlino
2f9ee33336
prototyping a way to group buildings into blocks, for commute viz
2020-04-16 19:00:07 -07:00
Dustin Carlino
97d31fe682
remove the fixed end-of-day; make it easier to jump to times in multi-day scenarios
2020-04-15 16:26:01 -07:00
Dustin Carlino
f9ac07d07d
implement julian's contingency table-ish thing. buggy, but a start
2020-04-14 15:38:03 -07:00
Dustin Carlino
ec81c4d03a
optionally filter the scatterplot for changes only, and fix rounding for
...
small numbers
2020-04-14 13:26:58 -07:00
Dustin Carlino
1c3bab61f9
round up the labels in the scatterplot
2020-04-14 11:54:09 -07:00
Dustin Carlino
69a8b88583
experimenting with new summaries of trip diffs
2020-04-10 11:44:47 -07:00
Dustin Carlino
2ef76b5e7c
generate nicer active agent area diagram, use in jump-to-time
2020-04-05 13:10:31 -07:00
Dustin Carlino
edffcf3db7
small time/speed panel changes. also learning a little more about when
...
padding actually works in flexbox...
2020-04-04 12:06:06 -07:00
Dustin Carlino
5ba468f4cf
SVG border-radius is sometimes a lie. mimic the dirty trick.
2020-04-03 13:22:05 -07:00
Dustin Carlino
88bad05d39
clean up agent properties. lots of tweaks needed, but i'm exhausted
2020-04-02 21:36:19 -07:00
Dustin Carlino
5c69c6e221
change heatmap to use gaussian instead of weird diffusion. still looks
...
odd.
2020-04-01 11:38:41 -07:00
Dustin Carlino
62b49ad884
refactor: properly generic histogram, and remove unnecessary boilerplate
...
from Plot. Rust generics are so awesome.
2020-03-31 20:57:50 -07:00
Dustin Carlino
e12e788716
work on more small style improvements of info panels [rebuild]
2020-03-31 17:27:25 -07:00
Dustin Carlino
f733763f73
get trip panel closer to the new design. start trying to use fixed size
...
panels [rebuild]
2020-03-31 15:46:46 -07:00
Dustin Carlino
7be5b3f34a
change settings live for traffic/delay graphs [rebuild]
2020-03-31 12:31:40 -07:00
Dustin Carlino
0fb22b5f50
sloppy (and incorrect!) implementation of gradients. temporarily breaks
...
non-glium backends, about to cleanup.
2020-03-30 15:48:23 -07:00
Dustin Carlino
be9671a51f
more fixes for left-hand maps ( #27 ):
...
- avoid a crash by deduping intersection polygon points
- make shared sidewalk corners saner by flipping order of points
- improve crosswalk determination
2020-03-16 18:27:33 -07:00
Dustin Carlino
e5d9d80c14
make sim stepping way more precise, doing minimal amount of time
...
advancement in the innermost layer
tested by making sure prebaked results don't budge
2020-02-28 14:52:41 -08:00
Dustin Carlino
3e6658785e
active agent plot breaking polylines
2020-02-26 14:17:41 -08:00
Dustin Carlino
b2c92ab8f9
upstreaming some changes for wasm here
...
- use instant crate
- bring in the wasm ezgui backend and necessary setup tweaks
- upgrade stdweb
but no map editor build magic yet
2020-02-14 14:28:25 -08:00
Dustin Carlino
fc47d2b948
work on info panels a little more. lanes are looking pretty good now.
2020-02-12 11:16:05 -08:00
Dustin Carlino
f359995a27
adjust the indication of some selected objects
2020-02-10 13:16:39 -08:00
Dustin Carlino
4660dd077c
rip out the old support for mapping UV coordinates onto a polygon
2020-02-08 16:48:01 -08:00
Dustin Carlino
1d13ae39c3
explain a few more things in the tutorial, improve arrows a bit
...
[rebuild]
2020-01-31 12:18:44 -08:00
Dustin Carlino
79de16a840
get the sim crate to build to wasm. a small step towards #21
2020-01-30 17:28:52 -08:00
Dustin Carlino
b2216bb482
not all lanes have to be the same width. make sidewalks a bit thinner.
2020-01-28 17:26:14 -08:00
Dustin Carlino
1c7764843a
reorder and tune some info panel contents
2020-01-25 14:56:30 -08:00
Dustin Carlino
52e921ff66
tune miter explosion threshold for plots
2020-01-25 14:30:28 -08:00
Dustin Carlino
95a84fd26a
tweaking rustfmt options; the long literal string vecs in tutorial look awful
2020-01-21 15:20:02 -08:00
Dustin Carlino
67ebb76f94
tiny refactor of rounded_rectangle. pad time panel
2020-01-20 12:36:27 -08:00
Dustin Carlino
1ab3c5200a
limit max unzoom based on actual map dims
2020-01-13 14:39:02 -08:00
Dustin Carlino
0a5d945f20
avoid some bugs if we simulate way past 24 hours
2020-01-09 12:01:12 -06:00
Dustin Carlino
642084c595
rotate walk icons
2020-01-02 10:24:12 -06:00
Dustin Carlino
38bc88d54b
make the pan buttons do something
2019-12-25 12:35:49 -08:00
Dustin Carlino
3755d9b858
proper clone for Sim
2019-12-24 14:47:07 -08:00
Dustin Carlino
a67b1bf19a
refactor Polygon::rectangle_top_left and a few more things... taking
...
Distance everywhere is kind of silly
2019-12-20 12:42:49 -08:00
Dustin Carlino
04bcf77e2b
work on new traffic signal scrolling panel. generalized scrollable
...
Composite works!
2019-12-20 09:35:27 -08:00
Dustin Carlino
1542e237d9
limit precision on ScreenDims. should fix #18
2019-12-12 09:13:25 -08:00
Dustin Carlino
b83e61eaee
little outlines for the bars
2019-12-09 14:06:25 -08:00
Dustin Carlino
954ac97a9f
started a histogram to show relative trip durations for fixing traffic
...
signals. lots of work needed.
2019-12-09 12:50:55 -08:00
Dustin Carlino
77099a164b
try using usvg and lyon to produce Polygon+Colors from svg files. so
...
far, so good. dodging a dependency on harfbuzz (which doesn't build in
my windows cross-compilation env), now trying on mac...
2019-12-08 10:24:01 -08:00
Dustin Carlino
d0cdf2412d
record intersection delays in analytics
2019-12-04 10:48:36 -08:00
Dustin Carlino
27213995e5
split out a histogram for percentages. for now, duplicate code
2019-12-02 14:19:50 -08:00
Dustin Carlino
1648b56009
fix crashes in all trip viz
2019-11-29 11:57:25 -08:00
Dustin Carlino
e1156a6384
print negative durations properly
2019-11-27 13:20:31 -08:00
Dustin Carlino
3d614ed763
helper for duration to make real-time seconds
2019-11-27 13:16:49 -08:00
Dustin Carlino
2c49d68a0f
last lingering cleanups for Duration / Time types
2019-11-27 13:12:19 -08:00
Dustin Carlino
c6bfab7cde
cutover scenrio-layer stuff to use Time
2019-11-27 12:50:52 -08:00
Dustin Carlino
a5dab493cd
cutover internal sim time to Time
2019-11-27 12:40:49 -08:00
Dustin Carlino
819e27aa5d
cutover sim time (via the API) to time
2019-11-27 11:49:57 -08:00
Dustin Carlino
e109c6b5a4
switch sim analytics to use Time
2019-11-27 11:06:57 -08:00
Dustin Carlino
3b6cc91440
make a new time type, don't touch duration yet
2019-11-27 10:33:58 -08:00
Dustin Carlino
082ae0cea1
simple polygon translate API -- no use in taking distances. pt2d isnt natively expressed in meters, and mostly using this for screenspace anyway
2019-11-27 09:15:46 -08:00
Dustin Carlino
ad20f596bf
actually round the rectangles
2019-11-26 11:28:29 -08:00
Dustin Carlino
f0314c31b1
making an... almost rounded rectangle ;)
2019-11-24 18:08:46 -08:00
Dustin Carlino
aa4805cfeb
some tools to debug why prebaked analytics arent matching
2019-11-20 17:01:12 -08:00
Dustin Carlino
accc344054
use scoreboard tool to show comparison for all trips
2019-11-15 13:19:57 -08:00
Dustin Carlino
2f31893c48
label time and print in AM/PM format
2019-11-15 11:14:08 -08:00
Dustin Carlino
7512098411
circular buttons need to act as covered areas too
2019-11-13 11:47:37 -08:00
Dustin Carlino
03d599775f
clean up some crosswalks generated near roads with sidewalks only on one side
2019-11-12 15:54:47 -08:00
Dustin Carlino
53d1067414
refactoring some text to compare results
2019-11-07 09:37:04 -08:00
Dustin Carlino
255a7f735d
very basic way to hover over series in a plot
2019-11-06 13:14:18 -08:00
Dustin Carlino
c54842faff
get rid of DurationStats, just beef up DurationHistogram slightly
2019-11-04 14:31:40 -08:00
Dustin Carlino
7eeebb72ec
displaying different bus arrival info, and experimenting with storing the data differently. no prebaking yet.
2019-11-04 10:41:50 -08:00
Dustin Carlino
33fe2981af
oh wow, traffic signal durations have been hardcoded forever. woops?
2019-11-01 14:26:27 -07:00
Dustin Carlino
06dd88ec34
first cut on prebaking challenge results against different baselines.
...
just for faster trips right now.
2019-11-01 13:33:02 -07:00
Dustin Carlino
b6dee0b35d
new challenge: speed up trips of some target population
2019-11-01 10:59:27 -07:00
Dustin Carlino
78904c007f
be able to change the statistic in the bus score display. still not
...
quite presenting something sensible, but...
2019-10-31 16:33:38 -07:00
Dustin Carlino
1d5064ca1b
track all bus arrivals, show distribution. track total number of
...
passengers per route
2019-10-29 22:11:56 -07:00
Dustin Carlino
d757b45bff
manually workaround y inversion with stretched textures by modifying the
...
images
2019-10-29 16:36:19 -07:00
Dustin Carlino
e03e3393dd
be a little smarter about finding hits with the boundary
2019-10-25 13:54:09 -07:00
Dustin Carlino
77d0647b4f
when gluing together partial multipolygons, trace along the border when possible. improves a few cases.
2019-10-25 13:46:21 -07:00
Dustin Carlino
3dfeae8b2c
introduce a proper closed polyline abstraction, sub it in
2019-10-25 13:14:05 -07:00
Dustin Carlino
fe14e1709b
implement PartialEq on Pt2D using the old epsilon_eq. too many places in the codebase are inconsistent.
2019-10-25 12:24:18 -07:00
Dustin Carlino
cb4720946c
experiment with texturing cars, with some fun UV coordinates. looks half
...
reasonable when it works. breaks on duplicate points, not sure what's
wrong yet
2019-10-24 14:07:03 -07:00
Dustin Carlino
820a660132
experiment with building roofs
2019-10-23 23:36:01 -07:00
Dustin Carlino
17e02ebdf0
adding in support for rotating textures, except missing y-inversion
2019-10-23 16:30:23 -07:00
Dustin Carlino
2313b06995
DISABLED: apply sidewalk hints, same as parking. need to sort out what
...
should happen with parking without sidewalks
2019-10-23 13:00:42 -07:00
Dustin Carlino
cca6e25202
fix crash in make_arrow
2019-10-23 08:14:03 -07:00
Dustin Carlino
50728cf375
use epsilon_eq for polyline extension, so offstreet parking geom doesnt break in one case
2019-10-19 17:42:03 -07:00
Dustin Carlino
db4db7e0d9
very basic tool to point out intersections with the most contention
2019-09-30 11:39:55 -07:00
Dustin Carlino
a539270beb
dont compare GPSBounds exactly, bc floating pt serialization problems.
...
add a turn restriction near uw.
2019-09-30 09:24:17 -07:00
Dustin Carlino
0961475abc
some prep to make debugging intersection geometry in map_editor easier.
...
showing cursor pt and labeled debug lines.
2019-09-26 14:29:23 -07:00
Dustin Carlino
deaa555565
cutover Original{Road,Intersection} to just use OSM IDs. adjust a few
...
other places to ensure unique-per-map synthetic OSM IDs
2019-09-23 11:50:04 -07:00
Dustin Carlino
f18fc72265
finish structopt removal
2019-09-18 17:29:34 -07:00
Dustin Carlino
572c69175c
apply fixes to raw_data in synthetic crate and when creating the full map model. adjusting some LonLat matches to do approx_eq. not stable yet -- sometimes we leave a road connected to something missing.
2019-09-16 12:31:15 -07:00
Dustin Carlino
4a12cdd36a
easy way to select and delete big chunk of stuff in synthetic
2019-09-16 10:16:56 -07:00
Dustin Carlino
5c2d86ee95
improve a/b scoreboard colors and duration printing
2019-09-15 12:25:57 -07:00
Dustin Carlino
353d89cd25
more synthetic fixes: redo mouseover when model changes, avoid panic
...
with 0-len new road line, fix reused IDs, fix contains_pt for
some precomputed polygons
2019-09-12 09:54:12 -07:00
Dustin Carlino
1910d06bc7
infer clipping polygon from entire .osm if no polygon is specified
2019-09-02 12:37:40 -07:00
Dustin Carlino
636e6328cb
fix up synthetic's boundary_polygon, and remove more dead geom code
2019-08-26 16:04:26 -07:00
Dustin Carlino
0a39f4bd77
get rid of the coordinates_in_world_space hack; synthetic can just directly work in Pt2Ds now
2019-08-26 15:57:28 -07:00
Dustin Carlino
c545e5d86e
some bug with previous commit messing up roundabout handling... quick detour to only have HashablePt2D for Pt2D, never for LonLat
2019-08-26 14:10:34 -07:00
Dustin Carlino
114a76893a
now raw_data::Road
2019-08-26 13:59:10 -07:00
Dustin Carlino
ce4369be27
raw_data::Building too
2019-08-26 10:36:00 -07:00
Dustin Carlino
6af2c5c0e0
raw_data::Area up-front stores a Polygon
2019-08-25 19:28:59 -07:00
Dustin Carlino
29eb463a6f
base gps_bounds off of boundary polygon only. temporarily allow some out-of-bound coordinates, and deal with them during clipping. this means the osmosis boundary polygon is required.
2019-08-25 19:07:12 -07:00
Dustin Carlino
f8aaf4d7bf
using dyn explicitly, per rust 1.37 deprecation warning
2019-08-22 15:05:17 -07:00
Dustin Carlino
df90fc4f50
polylabel for building numbers
2019-08-19 12:01:10 -07:00