mirror of
https://github.com/a-b-street/abstreet.git
synced 2024-12-24 15:02:59 +03:00
deploy: 20d81cd453
This commit is contained in:
parent
826cf5fab1
commit
9dcb469ef4
Before Width: | Height: | Size: 9.8 KiB After Width: | Height: | Size: 9.8 KiB |
Before Width: | Height: | Size: 5.8 KiB After Width: | Height: | Size: 5.8 KiB |
Before Width: | Height: | Size: 13 KiB After Width: | Height: | Size: 13 KiB |
@ -1685,11 +1685,11 @@ ends at a border or building, there are many combinations of these sequences.
|
||||
This is a way to categorize them into three groups. I'm not sure it's the
|
||||
simplest way to express all the state transitons.</p>
|
||||
<h2><a class="header" href="#walking-only-trips" id="walking-only-trips">Walking-only trips</a></h2>
|
||||
<p><img src="trafficsim/../mdbook-plantuml-img/bede45c1-29b4-4ed1-abf9-6b3f8d5870c0.svg" alt="../mdbook-plantuml-img/bede45c1-29b4-4ed1-abf9-6b3f8d5870c0.svg" /></p>
|
||||
<p><img src="trafficsim/../mdbook-plantuml-img/988bf1e2-67f4-433e-843f-e84c34822f98.svg" alt="../mdbook-plantuml-img/988bf1e2-67f4-433e-843f-e84c34822f98.svg" /></p>
|
||||
<h2><a class="header" href="#trips-starting-from-a-border" id="trips-starting-from-a-border">Trips starting from a border</a></h2>
|
||||
<p><img src="trafficsim/../mdbook-plantuml-img/a24a88fd-7cdd-445c-9f41-8aee15f33114.svg" alt="../mdbook-plantuml-img/a24a88fd-7cdd-445c-9f41-8aee15f33114.svg" /></p>
|
||||
<p><img src="trafficsim/../mdbook-plantuml-img/687ecad4-2745-4ebe-aae7-6df830edc979.svg" alt="../mdbook-plantuml-img/687ecad4-2745-4ebe-aae7-6df830edc979.svg" /></p>
|
||||
<h2><a class="header" href="#trips-starting-from-a-building" id="trips-starting-from-a-building">Trips starting from a building</a></h2>
|
||||
<p><img src="trafficsim/../mdbook-plantuml-img/aac45b48-2e1b-48ce-adc1-65f2ed022622.svg" alt="../mdbook-plantuml-img/aac45b48-2e1b-48ce-adc1-65f2ed022622.svg" /></p>
|
||||
<p><img src="trafficsim/../mdbook-plantuml-img/ee047630-f301-4034-920d-fec00f33185e.svg" alt="../mdbook-plantuml-img/ee047630-f301-4034-920d-fec00f33185e.svg" /></p>
|
||||
<h1><a class="header" href="#case-studies" id="case-studies">Case studies</a></h1>
|
||||
<p>Note: Most of these still aren't started, because the baseline simulation in the
|
||||
relevant area isn't working. Unknown traffic signal timing, bad guesses at the
|
||||
|
@ -1,2 +1,2 @@
|
||||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="API documentation for the Rust `BUILT_TIME_UTC` constant in crate `game`."><meta name="keywords" content="rust, rustlang, rust-lang, BUILT_TIME_UTC"><title>game::pregame::built_info::BUILT_TIME_UTC - Rust</title><link rel="stylesheet" type="text/css" href="../../../normalize.css"><link rel="stylesheet" type="text/css" href="../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../../dark.css"><link rel="stylesheet" type="text/css" href="../../../light.css" id="themeStyle"><script src="../../../storage.js"></script><noscript><link rel="stylesheet" href="../../../noscript.css"></noscript><link rel="shortcut icon" href="../../../favicon.ico"><style type="text/css">#crate-search{background-image:url("../../../down-arrow.svg");}</style></head><body class="rustdoc constant"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../../game/index.html'><div class='logo-container'><img src='../../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class='location'><a href='../../index.html'>game</a>::<wbr><a href='../index.html'>pregame</a>::<wbr><a href='index.html'>built_info</a></p><script>window.sidebarCurrent = {name: 'BUILT_TIME_UTC', ty: 'constant', relpath: ''};</script><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!"><img src="../../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices"></div></div><script src="../../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><a id="settings-menu" href="../../../settings.html"><img src="../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><span class='out-of-band'><span id='render-detail'><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class='inner'>−</span>]</a></span><a class='srclink' href='../../../src/game/home/runner/work/abstreet/abstreet/target/debug/build/game-c6448dba6984e0e2/out/built.rs.html#49' title='goto source code'>[src]</a></span><span class='in-band'>Constant <a href='../../index.html'>game</a>::<wbr><a href='../index.html'>pregame</a>::<wbr><a href='index.html'>built_info</a>::<wbr><a class="constant" href=''>BUILT_TIME_UTC</a></span></h1><pre class='rust const'>pub const BUILT_TIME_UTC: &<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a> = "Mon, 24 Aug 2020 17:43:45 +0000";</pre><div class='docblock'><p>The built-time in RFC2822, UTC</p>
|
||||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="API documentation for the Rust `BUILT_TIME_UTC` constant in crate `game`."><meta name="keywords" content="rust, rustlang, rust-lang, BUILT_TIME_UTC"><title>game::pregame::built_info::BUILT_TIME_UTC - Rust</title><link rel="stylesheet" type="text/css" href="../../../normalize.css"><link rel="stylesheet" type="text/css" href="../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../../dark.css"><link rel="stylesheet" type="text/css" href="../../../light.css" id="themeStyle"><script src="../../../storage.js"></script><noscript><link rel="stylesheet" href="../../../noscript.css"></noscript><link rel="shortcut icon" href="../../../favicon.ico"><style type="text/css">#crate-search{background-image:url("../../../down-arrow.svg");}</style></head><body class="rustdoc constant"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../../game/index.html'><div class='logo-container'><img src='../../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class='location'><a href='../../index.html'>game</a>::<wbr><a href='../index.html'>pregame</a>::<wbr><a href='index.html'>built_info</a></p><script>window.sidebarCurrent = {name: 'BUILT_TIME_UTC', ty: 'constant', relpath: ''};</script><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!"><img src="../../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices"></div></div><script src="../../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><a id="settings-menu" href="../../../settings.html"><img src="../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><span class='out-of-band'><span id='render-detail'><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class='inner'>−</span>]</a></span><a class='srclink' href='../../../src/game/home/runner/work/abstreet/abstreet/target/debug/build/game-c6448dba6984e0e2/out/built.rs.html#49' title='goto source code'>[src]</a></span><span class='in-band'>Constant <a href='../../index.html'>game</a>::<wbr><a href='../index.html'>pregame</a>::<wbr><a href='index.html'>built_info</a>::<wbr><a class="constant" href=''>BUILT_TIME_UTC</a></span></h1><pre class='rust const'>pub const BUILT_TIME_UTC: &<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a> = "Mon, 24 Aug 2020 18:37:35 +0000";</pre><div class='docblock'><p>The built-time in RFC2822, UTC</p>
|
||||
</div></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../../";window.currentCrate = "game";</script><script src="../../../main.js"></script><script defer src="../../../search-index.js"></script></body></html>
|
@ -1 +1 @@
|
||||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="API documentation for the Rust `get_lane_specs` fn in crate `map_model`."><meta name="keywords" content="rust, rustlang, rust-lang, get_lane_specs"><title>map_model::make::initial::lane_specs::get_lane_specs - Rust</title><link rel="stylesheet" type="text/css" href="../../../../normalize.css"><link rel="stylesheet" type="text/css" href="../../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../../../dark.css"><link rel="stylesheet" type="text/css" href="../../../../light.css" id="themeStyle"><script src="../../../../storage.js"></script><noscript><link rel="stylesheet" href="../../../../noscript.css"></noscript><link rel="shortcut icon" href="../../../../favicon.ico"><style type="text/css">#crate-search{background-image:url("../../../../down-arrow.svg");}</style></head><body class="rustdoc fn"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../../../map_model/index.html'><div class='logo-container'><img src='../../../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class='location'><a href='../../../index.html'>map_model</a>::<wbr><a href='../../index.html'>make</a>::<wbr><a href='../index.html'>initial</a>::<wbr><a href='index.html'>lane_specs</a></p><script>window.sidebarCurrent = {name: 'get_lane_specs', ty: 'fn', relpath: ''};</script><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!"><img src="../../../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices"></div></div><script src="../../../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><a id="settings-menu" href="../../../../settings.html"><img src="../../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><span class='out-of-band'><span id='render-detail'><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class='inner'>−</span>]</a></span><a class='srclink' href='../../../../src/map_model/make/initial/lane_specs.rs.html#57-286' title='goto source code'>[src]</a></span><span class='in-band'>Function <a href='../../../index.html'>map_model</a>::<wbr><a href='../../index.html'>make</a>::<wbr><a href='../index.html'>initial</a>::<wbr><a href='index.html'>lane_specs</a>::<wbr><a class="fn" href=''>get_lane_specs</a></span></h1><pre class='rust fn'>pub fn get_lane_specs(tags: &<a class="struct" href="../../../../abstutil/collections/struct.Tags.html" title="struct abstutil::collections::Tags">Tags</a>) -> <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="struct" href="../../../../map_model/make/initial/lane_specs/struct.LaneSpec.html" title="struct map_model::make::initial::lane_specs::LaneSpec">LaneSpec</a>></pre></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../../../";window.currentCrate = "map_model";</script><script src="../../../../main.js"></script><script defer src="../../../../search-index.js"></script></body></html>
|
||||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="API documentation for the Rust `get_lane_specs` fn in crate `map_model`."><meta name="keywords" content="rust, rustlang, rust-lang, get_lane_specs"><title>map_model::make::initial::lane_specs::get_lane_specs - Rust</title><link rel="stylesheet" type="text/css" href="../../../../normalize.css"><link rel="stylesheet" type="text/css" href="../../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../../../dark.css"><link rel="stylesheet" type="text/css" href="../../../../light.css" id="themeStyle"><script src="../../../../storage.js"></script><noscript><link rel="stylesheet" href="../../../../noscript.css"></noscript><link rel="shortcut icon" href="../../../../favicon.ico"><style type="text/css">#crate-search{background-image:url("../../../../down-arrow.svg");}</style></head><body class="rustdoc fn"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../../../map_model/index.html'><div class='logo-container'><img src='../../../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class='location'><a href='../../../index.html'>map_model</a>::<wbr><a href='../../index.html'>make</a>::<wbr><a href='../index.html'>initial</a>::<wbr><a href='index.html'>lane_specs</a></p><script>window.sidebarCurrent = {name: 'get_lane_specs', ty: 'fn', relpath: ''};</script><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!"><img src="../../../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices"></div></div><script src="../../../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><a id="settings-menu" href="../../../../settings.html"><img src="../../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><span class='out-of-band'><span id='render-detail'><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class='inner'>−</span>]</a></span><a class='srclink' href='../../../../src/map_model/make/initial/lane_specs.rs.html#57-291' title='goto source code'>[src]</a></span><span class='in-band'>Function <a href='../../../index.html'>map_model</a>::<wbr><a href='../../index.html'>make</a>::<wbr><a href='../index.html'>initial</a>::<wbr><a href='index.html'>lane_specs</a>::<wbr><a class="fn" href=''>get_lane_specs</a></span></h1><pre class='rust fn'>pub fn get_lane_specs(tags: &<a class="struct" href="../../../../abstutil/collections/struct.Tags.html" title="struct abstutil::collections::Tags">Tags</a>) -> <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="struct" href="../../../../map_model/make/initial/lane_specs/struct.LaneSpec.html" title="struct map_model::make::initial::lane_specs::LaneSpec">LaneSpec</a>></pre></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../../../";window.currentCrate = "map_model";</script><script src="../../../../main.js"></script><script defer src="../../../../search-index.js"></script></body></html>
|
@ -1,3 +1,3 @@
|
||||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="API documentation for the Rust `lane_specs` mod in crate `map_model`."><meta name="keywords" content="rust, rustlang, rust-lang, lane_specs"><title>map_model::make::initial::lane_specs - Rust</title><link rel="stylesheet" type="text/css" href="../../../../normalize.css"><link rel="stylesheet" type="text/css" href="../../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../../../dark.css"><link rel="stylesheet" type="text/css" href="../../../../light.css" id="themeStyle"><script src="../../../../storage.js"></script><noscript><link rel="stylesheet" href="../../../../noscript.css"></noscript><link rel="shortcut icon" href="../../../../favicon.ico"><style type="text/css">#crate-search{background-image:url("../../../../down-arrow.svg");}</style></head><body class="rustdoc mod"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../../../map_model/index.html'><div class='logo-container'><img src='../../../../rust-logo.png' alt='logo'></div></a><p class='location'>Module lane_specs</p><div class="sidebar-elems"><div class="block items"><ul><li><a href="#structs">Structs</a></li><li><a href="#functions">Functions</a></li></ul></div><p class='location'><a href='../../../index.html'>map_model</a>::<wbr><a href='../../index.html'>make</a>::<wbr><a href='../index.html'>initial</a></p><script>window.sidebarCurrent = {name: 'lane_specs', ty: 'mod', relpath: '../'};</script><script defer src="../sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!"><img src="../../../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices"></div></div><script src="../../../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><a id="settings-menu" href="../../../../settings.html"><img src="../../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><span class='out-of-band'><span id='render-detail'><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class='inner'>−</span>]</a></span><a class='srclink' href='../../../../src/map_model/make/initial/lane_specs.rs.html#1-286' title='goto source code'>[src]</a></span><span class='in-band'>Module <a href='../../../index.html'>map_model</a>::<wbr><a href='../../index.html'>make</a>::<wbr><a href='../index.html'>initial</a>::<wbr><a class="mod" href=''>lane_specs</a></span></h1><h2 id='structs' class='section-header'><a href="#structs">Structs</a></h2>
|
||||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="API documentation for the Rust `lane_specs` mod in crate `map_model`."><meta name="keywords" content="rust, rustlang, rust-lang, lane_specs"><title>map_model::make::initial::lane_specs - Rust</title><link rel="stylesheet" type="text/css" href="../../../../normalize.css"><link rel="stylesheet" type="text/css" href="../../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../../../dark.css"><link rel="stylesheet" type="text/css" href="../../../../light.css" id="themeStyle"><script src="../../../../storage.js"></script><noscript><link rel="stylesheet" href="../../../../noscript.css"></noscript><link rel="shortcut icon" href="../../../../favicon.ico"><style type="text/css">#crate-search{background-image:url("../../../../down-arrow.svg");}</style></head><body class="rustdoc mod"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../../../map_model/index.html'><div class='logo-container'><img src='../../../../rust-logo.png' alt='logo'></div></a><p class='location'>Module lane_specs</p><div class="sidebar-elems"><div class="block items"><ul><li><a href="#structs">Structs</a></li><li><a href="#functions">Functions</a></li></ul></div><p class='location'><a href='../../../index.html'>map_model</a>::<wbr><a href='../../index.html'>make</a>::<wbr><a href='../index.html'>initial</a></p><script>window.sidebarCurrent = {name: 'lane_specs', ty: 'mod', relpath: '../'};</script><script defer src="../sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!"><img src="../../../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices"></div></div><script src="../../../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><a id="settings-menu" href="../../../../settings.html"><img src="../../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><span class='out-of-band'><span id='render-detail'><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class='inner'>−</span>]</a></span><a class='srclink' href='../../../../src/map_model/make/initial/lane_specs.rs.html#1-291' title='goto source code'>[src]</a></span><span class='in-band'>Module <a href='../../../index.html'>map_model</a>::<wbr><a href='../../index.html'>make</a>::<wbr><a href='../index.html'>initial</a>::<wbr><a class="mod" href=''>lane_specs</a></span></h1><h2 id='structs' class='section-header'><a href="#structs">Structs</a></h2>
|
||||
<table><tr class='module-item'><td><a class="struct" href="struct.LaneSpec.html" title='map_model::make::initial::lane_specs::LaneSpec struct'>LaneSpec</a></td><td class='docblock-short'></td></tr></table><h2 id='functions' class='section-header'><a href="#functions">Functions</a></h2>
|
||||
<table><tr class='module-item'><td><a class="fn" href="fn.get_lane_specs.html" title='map_model::make::initial::lane_specs::get_lane_specs fn'>get_lane_specs</a></td><td class='docblock-short'></td></tr></table></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../../../";window.currentCrate = "map_model";</script><script src="../../../../main.js"></script><script defer src="../../../../search-index.js"></script></body></html>
|
@ -111,7 +111,7 @@
|
||||
<span class="doccomment">/// The output of `rustdoc -V`</span>
|
||||
<span class="kw">pub</span> <span class="kw">const</span> <span class="ident">RUSTDOC_VERSION</span>: <span class="kw-2">&</span><span class="ident">str</span> <span class="op">=</span> <span class="string">"rustdoc 1.45.2 (d3fb005a3 2020-07-31)"</span>;
|
||||
<span class="doccomment">/// The built-time in RFC2822, UTC</span>
|
||||
<span class="kw">pub</span> <span class="kw">const</span> <span class="ident">BUILT_TIME_UTC</span>: <span class="kw-2">&</span><span class="ident">str</span> <span class="op">=</span> <span class="string">"Mon, 24 Aug 2020 17:43:45 +0000"</span>;
|
||||
<span class="kw">pub</span> <span class="kw">const</span> <span class="ident">BUILT_TIME_UTC</span>: <span class="kw-2">&</span><span class="ident">str</span> <span class="op">=</span> <span class="string">"Mon, 24 Aug 2020 18:37:35 +0000"</span>;
|
||||
<span class="doccomment">/// The target architecture, given by `cfg!(target_arch)`.</span>
|
||||
<span class="kw">pub</span> <span class="kw">const</span> <span class="ident">CFG_TARGET_ARCH</span>: <span class="kw-2">&</span><span class="ident">str</span> <span class="op">=</span> <span class="string">"x86_64"</span>;
|
||||
<span class="doccomment">/// The endianness, given by `cfg!(target_endian)`.</span>
|
||||
|
@ -284,6 +284,11 @@
|
||||
<span id="284">284</span>
|
||||
<span id="285">285</span>
|
||||
<span id="286">286</span>
|
||||
<span id="287">287</span>
|
||||
<span id="288">288</span>
|
||||
<span id="289">289</span>
|
||||
<span id="290">290</span>
|
||||
<span id="291">291</span>
|
||||
</pre><div class="example-wrap"><pre class="rust ">
|
||||
<span class="kw">use</span> <span class="kw">crate</span>::{<span class="ident">osm</span>, <span class="ident">LaneType</span>, <span class="ident">NORMAL_LANE_THICKNESS</span>, <span class="ident">SHOULDER_THICKNESS</span>, <span class="ident">SIDEWALK_THICKNESS</span>};
|
||||
<span class="kw">use</span> <span class="ident">abstutil</span>::<span class="ident">Tags</span>;
|
||||
@ -469,23 +474,28 @@
|
||||
}
|
||||
}
|
||||
|
||||
<span class="kw">if</span> <span class="ident">tags</span>.<span class="ident">is</span>(<span class="string">"cycleway"</span>, <span class="string">"lane"</span>) {
|
||||
<span class="kw">if</span> <span class="ident">tags</span>.<span class="ident">is_any</span>(<span class="string">"cycleway"</span>, <span class="macro">vec</span><span class="macro">!</span>[<span class="string">"lane"</span>, <span class="string">"track"</span>]) {
|
||||
<span class="ident">fwd_side</span>.<span class="ident">push</span>(<span class="ident">LaneType</span>::<span class="ident">Biking</span>);
|
||||
<span class="kw">if</span> <span class="op">!</span><span class="ident">back_side</span>.<span class="ident">is_empty</span>() {
|
||||
<span class="ident">back_side</span>.<span class="ident">push</span>(<span class="ident">LaneType</span>::<span class="ident">Biking</span>);
|
||||
}
|
||||
} <span class="kw">else</span> <span class="kw">if</span> <span class="ident">tags</span>.<span class="ident">is</span>(<span class="string">"cycleway:both"</span>, <span class="string">"lane"</span>) {
|
||||
} <span class="kw">else</span> <span class="kw">if</span> <span class="ident">tags</span>.<span class="ident">is_any</span>(<span class="string">"cycleway:both"</span>, <span class="macro">vec</span><span class="macro">!</span>[<span class="string">"lane"</span>, <span class="string">"track"</span>]) {
|
||||
<span class="ident">fwd_side</span>.<span class="ident">push</span>(<span class="ident">LaneType</span>::<span class="ident">Biking</span>);
|
||||
<span class="ident">back_side</span>.<span class="ident">push</span>(<span class="ident">LaneType</span>::<span class="ident">Biking</span>);
|
||||
} <span class="kw">else</span> {
|
||||
<span class="kw">if</span> <span class="ident">tags</span>.<span class="ident">is</span>(<span class="string">"cycleway:right"</span>, <span class="string">"lane"</span>) {
|
||||
<span class="kw">if</span> <span class="ident">tags</span>.<span class="ident">is_any</span>(<span class="string">"cycleway:right"</span>, <span class="macro">vec</span><span class="macro">!</span>[<span class="string">"lane"</span>, <span class="string">"track"</span>]) {
|
||||
<span class="ident">fwd_side</span>.<span class="ident">push</span>(<span class="ident">LaneType</span>::<span class="ident">Biking</span>);
|
||||
}
|
||||
<span class="kw">if</span> <span class="ident">tags</span>.<span class="ident">is_any</span>(<span class="string">"cycleway:left"</span>, <span class="macro">vec</span><span class="macro">!</span>[<span class="string">"lane"</span>, <span class="string">"opposite_lane"</span>])
|
||||
<span class="op">|</span><span class="op">|</span> <span class="ident">tags</span>.<span class="ident">is</span>(<span class="string">"cycleway"</span>, <span class="string">"opposite_lane"</span>)
|
||||
{
|
||||
<span class="kw">if</span> <span class="ident">tags</span>.<span class="ident">is</span>(<span class="string">"cycleway:left"</span>, <span class="string">"opposite_lane"</span>) <span class="op">|</span><span class="op">|</span> <span class="ident">tags</span>.<span class="ident">is</span>(<span class="string">"cycleway"</span>, <span class="string">"opposite_lane"</span>) {
|
||||
<span class="ident">back_side</span>.<span class="ident">push</span>(<span class="ident">LaneType</span>::<span class="ident">Biking</span>);
|
||||
}
|
||||
<span class="kw">if</span> <span class="ident">tags</span>.<span class="ident">is_any</span>(<span class="string">"cycleway:left"</span>, <span class="macro">vec</span><span class="macro">!</span>[<span class="string">"lane"</span>, <span class="string">"track"</span>]) {
|
||||
<span class="kw">if</span> <span class="ident">oneway</span> {
|
||||
<span class="ident">fwd_side</span>.<span class="ident">insert</span>(<span class="number">0</span>, <span class="ident">LaneType</span>::<span class="ident">Biking</span>);
|
||||
} <span class="kw">else</span> {
|
||||
<span class="ident">back_side</span>.<span class="ident">push</span>(<span class="ident">LaneType</span>::<span class="ident">Biking</span>);
|
||||
}
|
||||
}
|
||||
|
||||
<span class="comment">// Cycleway isn't explicitly specified, but this is a reasonable assumption anyway.</span>
|
||||
<span class="kw">if</span> <span class="ident">back_side</span>.<span class="ident">is_empty</span>() <span class="kw-2">&</span><span class="op">&</span> <span class="ident">tags</span>.<span class="ident">is</span>(<span class="string">"oneway:bicycle"</span>, <span class="string">"no"</span>) {
|
||||
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -154,11 +154,11 @@ ends at a border or building, there are many combinations of these sequences.
|
||||
This is a way to categorize them into three groups. I'm not sure it's the
|
||||
simplest way to express all the state transitons.</p>
|
||||
<h2><a class="header" href="#walking-only-trips" id="walking-only-trips">Walking-only trips</a></h2>
|
||||
<p><img src="../mdbook-plantuml-img/bede45c1-29b4-4ed1-abf9-6b3f8d5870c0.svg" alt="../mdbook-plantuml-img/bede45c1-29b4-4ed1-abf9-6b3f8d5870c0.svg" /></p>
|
||||
<p><img src="../mdbook-plantuml-img/988bf1e2-67f4-433e-843f-e84c34822f98.svg" alt="../mdbook-plantuml-img/988bf1e2-67f4-433e-843f-e84c34822f98.svg" /></p>
|
||||
<h2><a class="header" href="#trips-starting-from-a-border" id="trips-starting-from-a-border">Trips starting from a border</a></h2>
|
||||
<p><img src="../mdbook-plantuml-img/a24a88fd-7cdd-445c-9f41-8aee15f33114.svg" alt="../mdbook-plantuml-img/a24a88fd-7cdd-445c-9f41-8aee15f33114.svg" /></p>
|
||||
<p><img src="../mdbook-plantuml-img/687ecad4-2745-4ebe-aae7-6df830edc979.svg" alt="../mdbook-plantuml-img/687ecad4-2745-4ebe-aae7-6df830edc979.svg" /></p>
|
||||
<h2><a class="header" href="#trips-starting-from-a-building" id="trips-starting-from-a-building">Trips starting from a building</a></h2>
|
||||
<p><img src="../mdbook-plantuml-img/aac45b48-2e1b-48ce-adc1-65f2ed022622.svg" alt="../mdbook-plantuml-img/aac45b48-2e1b-48ce-adc1-65f2ed022622.svg" /></p>
|
||||
<p><img src="../mdbook-plantuml-img/ee047630-f301-4034-920d-fec00f33185e.svg" alt="../mdbook-plantuml-img/ee047630-f301-4034-920d-fec00f33185e.svg" /></p>
|
||||
|
||||
</main>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user