Skip to content

Commit

Permalink
deploy: 8edeb84
Browse files Browse the repository at this point in the history
  • Loading branch information
dabreegster committed Oct 16, 2024
1 parent 26ebae8 commit 9fa8574
Show file tree
Hide file tree
Showing 9 changed files with 49 additions and 37 deletions.
Binary file modified assets/backend_bg.wasm
Binary file not shown.
56 changes: 28 additions & 28 deletions assets/main-968cc696.js → assets/main-e5f639fb.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion assets/worker-95695a5e.js → assets/worker-33060665.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion doc/graph/struct.Graph.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
) -&gt; <a class="struct" href="https://doc.rust-lang.org/1.81.0/std/collections/hash/map/struct.HashMap.html" title="struct std::collections::hash::map::HashMap">HashMap</a>&lt;<a class="struct" href="struct.RoadID.html" title="struct graph::RoadID">RoadID</a>, <a class="struct" href="https://doc.rust-lang.org/1.81.0/core/time/struct.Duration.html" title="struct core::time::Duration">Duration</a>&gt;</h4></section></summary><div class="docblock"><p>From a list of start intersections, floods out the graph for a mode until <code>end_time</code> is
reached. Returns the time needed to reach each road within that range. This query is not
precise about positions along a road.</p>
</div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-Graph-1" class="impl"><a class="src rightside" href="../src/graph/scrape.rs.html#11-116">source</a><a href="#impl-Graph-1" class="anchor">§</a><h3 class="code-header">impl <a class="struct" href="struct.Graph.html" title="struct graph::Graph">Graph</a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.new" class="method"><a class="src rightside" href="../src/graph/scrape.rs.html#17-98">source</a><h4 class="code-header">pub fn <a href="#method.new" class="fn">new</a>&lt;F: <a class="trait" href="https://doc.rust-lang.org/1.81.0/core/ops/function/trait.FnOnce.html" title="trait core::ops::function::FnOnce">FnOnce</a>(&amp;mut <a class="struct" href="https://doc.rust-lang.org/1.81.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="struct" href="struct.Road.html" title="struct graph::Road">Road</a>&gt;), R: OsmReader&gt;(
</div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-Graph-1" class="impl"><a class="src rightside" href="../src/graph/scrape.rs.html#11-117">source</a><a href="#impl-Graph-1" class="anchor">§</a><h3 class="code-header">impl <a class="struct" href="struct.Graph.html" title="struct graph::Graph">Graph</a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.new" class="method"><a class="src rightside" href="../src/graph/scrape.rs.html#17-98">source</a><h4 class="code-header">pub fn <a href="#method.new" class="fn">new</a>&lt;F: <a class="trait" href="https://doc.rust-lang.org/1.81.0/core/ops/function/trait.FnOnce.html" title="trait core::ops::function::FnOnce">FnOnce</a>(&amp;mut <a class="struct" href="https://doc.rust-lang.org/1.81.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="struct" href="struct.Road.html" title="struct graph::Road">Road</a>&gt;), R: OsmReader&gt;(
input_bytes: &amp;[<a class="primitive" href="https://doc.rust-lang.org/1.81.0/std/primitive.u8.html">u8</a>],
osm_reader: <a class="primitive" href="https://doc.rust-lang.org/1.81.0/std/primitive.reference.html">&amp;mut R</a>,
modify_roads: F,
Expand Down
6 changes: 4 additions & 2 deletions doc/graph/struct.IntersectionID.html

Large diffs are not rendered by default.

6 changes: 4 additions & 2 deletions doc/graph/struct.RoadID.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion doc/search-index.js

Large diffs are not rendered by default.

10 changes: 9 additions & 1 deletion doc/src/graph/scrape.rs.html
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,10 @@
<a href="#224" id="224">224</a>
<a href="#225" id="225">225</a>
<a href="#226" id="226">226</a>
<a href="#227" id="227">227</a>
<a href="#228" id="228">228</a>
<a href="#229" id="229">229</a>
<a href="#230" id="230">230</a>
</pre></div><pre class="rust"><code><span class="kw">use </span>anyhow::Result;
<span class="kw">use </span>enum_map::EnumMap;
<span class="kw">use </span>geo::EuclideanLength;
Expand Down Expand Up @@ -336,6 +340,7 @@
GtfsSource::None =&gt; GtfsModel::empty(),
};
snap_stops(<span class="kw-2">&amp;mut </span><span class="self">self</span>.roads, <span class="kw-2">&amp;mut </span>gtfs, <span class="kw-2">&amp;</span><span class="self">self</span>.router[Mode::Foot], timer);
<span class="self">self</span>.gtfs = gtfs;
timer.pop();
<span class="prelude-val">Ok</span>(())
}
Expand Down Expand Up @@ -433,7 +438,10 @@
<span class="kw">return</span>;
}

timer.step(<span class="string">"find closest roads per stop"</span>);
timer.step(<span class="macro">format!</span>(
<span class="string">"find closest roads per stop ({})"</span>,
gtfs.stops.len()
));
<span class="comment">// TODO Make an iterator method that returns the IDs too
</span><span class="kw">for </span>(idx, stop) <span class="kw">in </span>gtfs.stops.iter_mut().enumerate() {
<span class="kw">let </span>stop_id = <span class="kw">crate</span>::gtfs::StopID(idx);
Expand Down
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>15-minute neighborhood tool</title>
<script type="module" crossorigin src="/15m/assets/main-968cc696.js"></script>
<script type="module" crossorigin src="/15m/assets/main-e5f639fb.js"></script>
<link rel="stylesheet" href="/15m/assets/index-4f769499.css">
</head>
<body>
Expand Down

0 comments on commit 9fa8574

Please sign in to comment.