Skip to content

Commit

Permalink
deploy: 3064732
Browse files Browse the repository at this point in the history
  • Loading branch information
dabreegster committed Nov 2, 2024
1 parent c1d7361 commit 4190971
Show file tree
Hide file tree
Showing 22 changed files with 43 additions and 57 deletions.
Binary file modified assets/backend_bg.wasm
Binary file not shown.
4 changes: 2 additions & 2 deletions assets/main-8db54073.js → assets/main-c78a0624.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion assets/worker-9d0a8ef5.js → assets/worker-8c9d5013.js

Large diffs are not rendered by default.

5 changes: 2 additions & 3 deletions doc/graph/enum.Direction.html

Large diffs are not rendered by default.

5 changes: 2 additions & 3 deletions doc/graph/enum.GtfsSource.html

Large diffs are not rendered by default.

5 changes: 2 additions & 3 deletions doc/graph/enum.PathStep.html

Large diffs are not rendered by default.

5 changes: 2 additions & 3 deletions doc/graph/struct.Graph.html

Large diffs are not rendered by default.

5 changes: 2 additions & 3 deletions doc/graph/struct.GtfsModel.html

Large diffs are not rendered by default.

5 changes: 2 additions & 3 deletions doc/graph/struct.Intersection.html

Large diffs are not rendered by default.

5 changes: 2 additions & 3 deletions doc/graph/struct.IntersectionID.html

Large diffs are not rendered by default.

5 changes: 2 additions & 3 deletions doc/graph/struct.Position.html

Large diffs are not rendered by default.

5 changes: 2 additions & 3 deletions doc/graph/struct.ProfileID.html

Large diffs are not rendered by default.

5 changes: 2 additions & 3 deletions doc/graph/struct.Road.html

Large diffs are not rendered by default.

5 changes: 2 additions & 3 deletions doc/graph/struct.RoadID.html

Large diffs are not rendered by default.

5 changes: 2 additions & 3 deletions doc/graph/struct.Route.html

Large diffs are not rendered by default.

5 changes: 2 additions & 3 deletions doc/graph/struct.Router.html

Large diffs are not rendered by default.

5 changes: 2 additions & 3 deletions doc/graph/struct.Timer.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.

4 changes: 2 additions & 2 deletions doc/src/graph/scrape.rs.html
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@
<span class="kw">use </span>std::time::Duration;

<span class="kw">use </span>anyhow::Result;
<span class="kw">use </span>geo::{EuclideanLength, LineString};
<span class="kw">use </span>geo::{Euclidean, Length, LineString};
<span class="kw">use </span>utils::Tags;

<span class="kw">use </span><span class="kw">crate</span>::gtfs::GtfsModel;
Expand Down Expand Up @@ -250,7 +250,7 @@
node1: e.osm_node1,
node2: e.osm_node2,
osm_tags: e.osm_tags,
length_meters: e.linestring.euclidean_length(),
length_meters: e.linestring.length::&lt;Euclidean&gt;(),
linestring: e.linestring,

access: Vec::new(),
Expand Down
12 changes: 6 additions & 6 deletions doc/src/graph/snap.rs.html
Original file line number Diff line number Diff line change
Expand Up @@ -132,8 +132,8 @@
<a href="#132" id="132">132</a>
</pre></div><pre class="rust"><code><span class="kw">use </span>anyhow::Result;
<span class="kw">use </span>geo::{
Closest, ClosestPoint, EuclideanDistance, EuclideanLength, LineInterpolatePoint,
LineLocatePoint, LineString,
Closest, ClosestPoint, Distance, Euclidean, Length, LineInterpolatePoint, LineLocatePoint,
LineString,
};

<span class="kw">use crate</span>::{Graph, IntersectionID, PathStep, ProfileID, Route};
Expand Down Expand Up @@ -181,7 +181,7 @@
</span><span class="kw">let </span>new_fraction_along = input.line_locate_point(<span class="kw-2">&amp;</span>pt)<span class="question-mark">?</span>;
<span class="kw">if </span>new_fraction_along &gt; fraction_along {
<span class="kw">let </span>dist = (<span class="number">100.0
</span>* pt.euclidean_distance(<span class="kw-2">&amp;</span><span class="self">self</span>.intersections[i.<span class="number">0</span>].point))
</span>* Euclidean::distance(pt, <span class="self">self</span>.intersections[i.<span class="number">0</span>].point))
<span class="kw">as </span>usize;
<span class="prelude-val">Some</span>((i, step, dist, new_fraction_along))
} <span class="kw">else </span>{
Expand Down Expand Up @@ -240,8 +240,8 @@
<span class="comment">// TODO Reconsider exposing
</span><span class="kw">pub fn </span>score_similarity(ls1: <span class="kw-2">&amp;</span>LineString, ls2: <span class="kw-2">&amp;</span>LineString) -&gt; <span class="prelude-ty">Option</span>&lt;(f64, f64)&gt; {
<span class="comment">// Just check length
</span><span class="kw">let </span>len1 = ls1.euclidean_length();
<span class="kw">let </span>len2 = ls2.euclidean_length();
</span><span class="kw">let </span>len1 = ls1.length::&lt;Euclidean&gt;();
<span class="kw">let </span>len2 = ls2.length::&lt;Euclidean&gt;();
<span class="kw">let </span>len_pct = <span class="kw">if </span>len1 &lt; len2 {
len2 / len1
} <span class="kw">else </span>{
Expand All @@ -257,7 +257,7 @@
</span><span class="kw">let </span>pt1 = ls1.line_interpolate_point(pct)<span class="question-mark">?</span>;
<span class="kw">let </span>pt2 = ls2.line_interpolate_point(pct)<span class="question-mark">?</span>;

dist_between_equiv_pts += pt1.euclidean_distance(<span class="kw-2">&amp;</span>pt2);
dist_between_equiv_pts += Euclidean::distance(pt1, pt2);
}

<span class="prelude-val">Some</span>((len_pct, dist_between_equiv_pts))
Expand Down
4 changes: 2 additions & 2 deletions doc/src/graph/transit_route.rs.html
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@

<span class="kw">use </span>anyhow::{bail, <span class="prelude-ty">Result</span>};
<span class="kw">use </span>chrono::NaiveTime;
<span class="kw">use </span>geo::{EuclideanDistance, LineString};
<span class="kw">use </span>geo::{Distance, Euclidean, LineString};
<span class="kw">use </span>geojson::{Feature, GeoJson, Geometry};
<span class="kw">use </span>utils::PriorityQueueItem;

Expand Down Expand Up @@ -326,7 +326,7 @@
</span><span class="kw">let </span>heuristic = |i: IntersectionID| {
<span class="kw">if </span>use_heuristic {
Duration::from_secs_f64(
<span class="self">self</span>.intersections[i.<span class="number">0</span>].point.euclidean_distance(<span class="kw-2">&amp;</span>end_pt) / <span class="number">1.34112</span>,
Euclidean::distance(<span class="self">self</span>.intersections[i.<span class="number">0</span>].point, end_pt) / <span class="number">1.34112</span>,
)
} <span class="kw">else </span>{
Duration::ZERO
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-8db54073.js"></script>
<script type="module" crossorigin src="/15m/assets/main-c78a0624.js"></script>
<link rel="stylesheet" href="/15m/assets/index-4f769499.css">
</head>
<body>
Expand Down

0 comments on commit 4190971

Please sign in to comment.