Commit Graph

7801 Commits

Author SHA1 Message Date
Dustin Carlino
f3b0651a0e Detangle the OSM extraction process into the street_network part and everything else. 2022-07-08 21:26:46 +01:00
Dustin Carlino
10f3592316 Start splitting convert_osm into a piece that only produces a StreetNetwork.
Only partly done. The crux of this refactor, extracting stuff from OSM, remains...
2022-07-08 21:26:46 +01:00
Dustin Carlino
f09c88a244 Refactor dummy MapConfig constructor 2022-07-08 21:26:46 +01:00
Dustin Carlino
bafbb58eb9 Remove abstio dependency from street_network 2022-07-08 21:26:46 +01:00
Dustin Carlino
9980cf0a35 Split raw_map into a new street_network crate.
MapConfig has a new bool, so we will need to regenerate all data.
2022-07-08 21:26:46 +01:00
Dustin Carlino
c95c16454b The .zip release's Ungap the Map scripts were still assuming an older directory structure 2022-07-08 18:49:29 +01:00
Dustin Carlino
355513d5df Expose render_table for bus_spotting, which just needs the layouting and not any of the sorting/filtering stuff 2022-07-05 14:23:33 +01:00
Dustin Carlino
193672f19f Same for PromptInput 2022-06-29 18:06:09 -05:00
Dustin Carlino
6d2e5ee603 Lift ChooseSomething to widgetry for bus_spotting 2022-06-29 16:37:27 -05:00
Dustin Carlino
7af2c028fc Scrape bollards defined as OSM nodes, and plumb through to the LTN tool.
The approach is a bit brittle, but works fine in Bristol.

Regenerating everything...
2022-06-28 20:35:07 -05:00
Dustin Carlino
f8d30c411f Match amenities defined as areas in OSM to buildings within. This was
already working for multipolygon relations, but for some reason not done
for ways. This fixes lots of missing schools in Bristol.
2022-06-28 20:35:07 -05:00
Dustin Carlino
edfd696ff3 Disable elevation data everywhere except for Seattle and SF (just to keep an SRTM test case). Running everywhere slows down map regeneration on my current laptop, and doesn't add much benefit, since the SRTM support is unfinished. #82 2022-06-28 20:35:07 -05:00
Dustin Carlino
73073f8408 new release 2022-06-27 16:57:07 -05:00
Dustin Carlino
5d954b8d79 Try again. [rebuild] [release] 2022-06-27 16:23:58 -05:00
Dustin Carlino
6bf2f6ba32 Disable Mac codesigning. [rebuild] [release]
Suddenly the notary service is failing with "A required agreement is
missing or has expired." I can't login to Apple currently, so
workaround.
2022-06-27 15:59:36 -05:00
Dustin Carlino
f1818e2de8 Kick off a [rebuild] [release] 2022-06-27 14:21:23 -05:00
Dustin Carlino
635e967c6d Fix a crash with road labels in Pune.
This happens in any map large enough to allow zooming below 0.1. But
while trying to debug, also working around another possible crash with
road labels.
2022-06-27 13:57:02 -05:00
Dustin Carlino
48398612de Refactor UnitFmt constructors 2022-06-27 12:11:48 -05:00
Dustin Carlino
e47a985e54 Move more lane transformation logic into raw_map 2022-06-26 12:07:20 -05:00
Dustin Carlino
9841dad3ec Move two of the logic-heavy lane transformations into raw_map.
This temporarily breaks a few tests in other places, porting that code
over momentarily...
2022-06-26 12:07:20 -05:00
Dustin Carlino
820f3c936a Forge two-way streets from existing single-lane one-ways, through the power of narrow lane widths 2022-06-26 12:07:20 -05:00
Dustin Carlino
373595f250 Fix two cases where u-turns weren't created. #947
Also has the happy side effect of preventing modal filters from being
put on roads that lead to no-car roads (which're effectively dead-ends
for cars).

Regenerate everything
2022-06-25 08:54:56 -05:00
Michael Kirk
8dc7e43309 Optional: rely on new default f64 type for geo-types 2022-06-24 18:13:28 -05:00
Michael Kirk
31637b4d61 update geo 2022-06-24 18:13:28 -05:00
Dustin Carlino
8ff0312eec Don't add invalid filters when cycling through possibilities for non-4-way intersections 2022-06-23 10:43:39 -05:00
Dustin Carlino
966dd7955d Don't filter deadends
(You told me about nowhere, sounds like someplace I'd like to go)
2022-06-23 10:43:39 -05:00
Dustin Carlino
c978affdd5 Be more consistent with error checks -- filters and one-way streets don't mix, no matter what order people try to edit 2022-06-23 10:43:39 -05:00
Dustin Carlino
86f908946f Popup error messages when the user tries to do something invalid (like filtering a one-way street) 2022-06-23 10:43:39 -05:00
Dustin Carlino
f0b09633c2 When the user enters an error state in the LTN tool, be more clear:
- use a caution icon to emphasize the error message
- show the problematic areas when hovering on the icon

This'll be used soon to show illegal one-way configurations.
2022-06-23 10:43:39 -05:00
Dustin Carlino
876930d6e6 Clarify Polygon::area comment 2022-06-23 08:39:12 -05:00
Michael Kirk
7188721a96 use unreleased polylabel to avoid duplicated geo dep 2022-06-23 08:24:27 -05:00
Dustin Carlino
be106d7141 Improve unzoomed road labels by continuing to adjust the size between zooms 1 and 4. 2022-06-22 09:10:46 -05:00
Dustin Carlino
0a59cedb98 Import Keighley 2022-06-21 13:56:55 +01:00
Dustin Carlino
ad06d145d4 Regenerate everything after all the geom changes. Also likely picking up minor diffs from using new georust 2022-06-20 23:17:19 +01:00
Dustin Carlino
1783ea6b2c Fix critical scary Polygon bug that was swapping exterior/interior 2022-06-20 23:17:19 +01:00
Dustin Carlino
4606575c4c Remove an API to create triangles 2022-06-20 23:17:19 +01:00
Dustin Carlino
94dea10433 Remove the custom point-in-polygon check 2022-06-20 23:17:19 +01:00
Dustin Carlino
0a4bba8606 Consolidate geom <->geo Polygon implementations 2022-06-20 23:17:19 +01:00
Fabian Gonzalez
a1a5f5f01a
Migrate from Stretch to Taffy (#942) 2022-06-20 17:35:11 +01:00
Dustin Carlino
6e5b874637 Add a workaround for bus_spotting's World + tooltips problem 2022-06-20 13:29:24 +01:00
Dustin Carlino
84ecf57067 Remove the gigantic list of buttons from the giant city picker. There's
noticeable lag to render text for the ~180 maps, and I don't see how the
massive list of buttons is helpful anyway. Just use the autocomplete.
2022-06-20 11:33:51 +01:00
Dustin Carlino
0eb366a5e3 After downloading missing files on native, continue loading the new map.
Don't make the user click something again. #931
2022-06-20 11:30:52 +01:00
Ilias
d3333d813d
Feature to repeat days with noise on departure (#926)
* Added repeat days with noise function & enum

* Added widgets and controls

* Modified description

* Refactor to have an Option<usize> in signature instead of a whole new similar function

* Added noise parameter + xor random shift + clamped substraction

* Added ref to the XorShiftRng to ScenarioModifiers::apply calls

* Added noise to pushed ScenarioModifier

* Finish up the PR:

- consistently reuse the RNG in the UI like tests/headless
- slight style tweaks

Co-authored-by: Dustin Carlino <dabreegster@gmail.com>
2022-06-14 18:23:15 +01:00
Dustin Carlino
34487a3322 Upgrade to new georust, which subsumes geo-boolean-op.
Based on https://github.com/michaelkirk/abstreet/tree/mkirk/test-bools

Note geojson isn't upgraded yet, due to contours. And the old version of
geo is still pulled in, due to polylabel.
2022-06-13 17:30:51 +01:00
Dustin Carlino
58a1a5e0a2 new release 2022-06-12 18:04:20 +01:00
Dustin Carlino
91ce5a1637 Update a few dependencies to deal with some security vulnerabilities. [rebuild] [release]
This bloats the build a bit, by bringing in multiple versions of some
deps. It'd be nice to go upgrade everything soon...
2022-06-12 17:09:06 +01:00
Dustin Carlino
360870a72c Refactor convert_osm::Options default settings 2022-06-12 16:35:11 +01:00
Dustin Carlino
0da4d75b69 When starting in consultation mode with an overriden boundary, make that
"stickier" by always resetting to it.  [rebuild] [release]

It adds a duplicate entry to AltProposals and messes up the concept of
active proposal, though...
2022-06-12 10:36:36 +01:00
Dustin Carlino
86f27ca790 Sometimes improve the overlapping paths rendering for intersections by
joining up corners. #884

Some cases look better, others are still missing.
2022-06-12 09:56:43 +01:00
Dustin Carlino
293987999e Don't crash when planning a route after editing one-ways. Use Dijkstra's
for pathfinding always, so we don't need to recalculate CHs after
changing directions.
2022-06-12 09:36:48 +01:00