This commit is contained in:
dabreegster 2021-01-25 18:19:05 +00:00
parent b7c1fbd752
commit 2b6567803e
16 changed files with 41 additions and 43 deletions

View File

@ -1,4 +1,4 @@
<!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 `extract_osm` fn in crate `convert_osm`."><meta name="keywords" content="rust, rustlang, rust-lang, extract_osm"><title>convert_osm::extract::extract_osm - 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="../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled ><script id="default-settings"></script><script src="../../storage.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../favicon.svg">
<link rel="alternate icon" type="image/png" href="../../favicon-16x16.png">
<link rel="alternate icon" type="image/png" href="../../favicon-32x32.png"><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">&#9776;</div><a href='../../convert_osm/index.html'><div class='logo-container rust-logo'><img src='../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class="location"><a href="../index.html">convert_osm</a>::<wbr><a href="index.html">extract</a></p><script>window.sidebarCurrent = {name: "extract_osm", 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!" aria-haspopup="menu"><img src="../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></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><span class="help-button">?</span>
<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">&#x2212;</span>]</a></span><a class="srclink" href="../../src/convert_osm/extract.rs.html#29-388" title="goto source code">[src]</a></span><span class="in-band">Function <a href="../index.html">convert_osm</a>::<wbr><a href="index.html">extract</a>::<wbr><a class="fn" href="">extract_osm</a></span></h1><pre class="rust fn">pub fn extract_osm(<br>&nbsp;&nbsp;&nbsp;&nbsp;map: &amp;mut <a class="struct" href="../../map_model/raw/struct.RawMap.html" title="struct map_model::raw::RawMap">RawMap</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;opts: &amp;<a class="struct" href="../../convert_osm/struct.Options.html" title="struct convert_osm::Options">Options</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;timer: &amp;mut <a class="struct" href="../../abstutil/time/struct.Timer.html" title="struct abstutil::time::Timer">Timer</a>&lt;'_&gt;<br>) -&gt; <a class="struct" href="../../convert_osm/extract/struct.OsmExtract.html" title="struct convert_osm::extract::OsmExtract">OsmExtract</a></pre></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../";window.currentCrate = "convert_osm";</script><script src="../../main.js"></script><script defer src="../../search-index.js"></script></body></html>
<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">&#x2212;</span>]</a></span><a class="srclink" href="../../src/convert_osm/extract.rs.html#29-391" title="goto source code">[src]</a></span><span class="in-band">Function <a href="../index.html">convert_osm</a>::<wbr><a href="index.html">extract</a>::<wbr><a class="fn" href="">extract_osm</a></span></h1><pre class="rust fn">pub fn extract_osm(<br>&nbsp;&nbsp;&nbsp;&nbsp;map: &amp;mut <a class="struct" href="../../map_model/raw/struct.RawMap.html" title="struct map_model::raw::RawMap">RawMap</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;opts: &amp;<a class="struct" href="../../convert_osm/struct.Options.html" title="struct convert_osm::Options">Options</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;timer: &amp;mut <a class="struct" href="../../abstutil/time/struct.Timer.html" title="struct abstutil::time::Timer">Timer</a>&lt;'_&gt;<br>) -&gt; <a class="struct" href="../../convert_osm/extract/struct.OsmExtract.html" title="struct convert_osm::extract::OsmExtract">OsmExtract</a></pre></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../";window.currentCrate = "convert_osm";</script><script src="../../main.js"></script><script defer src="../../search-index.js"></script></body></html>

View File

@ -1,4 +1,4 @@
<!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_area_type` fn in crate `convert_osm`."><meta name="keywords" content="rust, rustlang, rust-lang, get_area_type"><title>convert_osm::extract::get_area_type - 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="../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled ><script id="default-settings"></script><script src="../../storage.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../favicon.svg">
<link rel="alternate icon" type="image/png" href="../../favicon-16x16.png">
<link rel="alternate icon" type="image/png" href="../../favicon-32x32.png"><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">&#9776;</div><a href='../../convert_osm/index.html'><div class='logo-container rust-logo'><img src='../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class="location"><a href="../index.html">convert_osm</a>::<wbr><a href="index.html">extract</a></p><script>window.sidebarCurrent = {name: "get_area_type", 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!" aria-haspopup="menu"><img src="../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></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><span class="help-button">?</span>
<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">&#x2212;</span>]</a></span><a class="srclink" href="../../src/convert_osm/extract.rs.html#544-572" title="goto source code">[src]</a></span><span class="in-band">Function <a href="../index.html">convert_osm</a>::<wbr><a href="index.html">extract</a>::<wbr><a class="fn" href="">get_area_type</a></span></h1><pre class="rust fn">fn get_area_type(tags: &amp;<a class="struct" href="../../abstutil/collections/struct.Tags.html" title="struct abstutil::collections::Tags">Tags</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="enum" href="../../map_model/objects/area/enum.AreaType.html" title="enum map_model::objects::area::AreaType">AreaType</a>&gt;</pre></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../";window.currentCrate = "convert_osm";</script><script src="../../main.js"></script><script defer src="../../search-index.js"></script></body></html>
<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">&#x2212;</span>]</a></span><a class="srclink" href="../../src/convert_osm/extract.rs.html#547-575" title="goto source code">[src]</a></span><span class="in-band">Function <a href="../index.html">convert_osm</a>::<wbr><a href="index.html">extract</a>::<wbr><a class="fn" href="">get_area_type</a></span></h1><pre class="rust fn">fn get_area_type(tags: &amp;<a class="struct" href="../../abstutil/collections/struct.Tags.html" title="struct abstutil::collections::Tags">Tags</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="enum" href="../../map_model/objects/area/enum.AreaType.html" title="enum map_model::objects::area::AreaType">AreaType</a>&gt;</pre></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../";window.currentCrate = "convert_osm";</script><script src="../../main.js"></script><script defer src="../../search-index.js"></script></body></html>

View File

@ -1,4 +1,4 @@
<!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_bldg_amenities` fn in crate `convert_osm`."><meta name="keywords" content="rust, rustlang, rust-lang, get_bldg_amenities"><title>convert_osm::extract::get_bldg_amenities - 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="../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled ><script id="default-settings"></script><script src="../../storage.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../favicon.svg">
<link rel="alternate icon" type="image/png" href="../../favicon-16x16.png">
<link rel="alternate icon" type="image/png" href="../../favicon-32x32.png"><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">&#9776;</div><a href='../../convert_osm/index.html'><div class='logo-container rust-logo'><img src='../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class="location"><a href="../index.html">convert_osm</a>::<wbr><a href="index.html">extract</a></p><script>window.sidebarCurrent = {name: "get_bldg_amenities", 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!" aria-haspopup="menu"><img src="../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></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><span class="help-button">?</span>
<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">&#x2212;</span>]</a></span><a class="srclink" href="../../src/convert_osm/extract.rs.html#530-542" title="goto source code">[src]</a></span><span class="in-band">Function <a href="../index.html">convert_osm</a>::<wbr><a href="index.html">extract</a>::<wbr><a class="fn" href="">get_bldg_amenities</a></span></h1><pre class="rust fn">fn get_bldg_amenities(tags: &amp;<a class="struct" href="../../abstutil/collections/struct.Tags.html" title="struct abstutil::collections::Tags">Tags</a>) -&gt; <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="struct" href="../../map_model/objects/building/struct.Amenity.html" title="struct map_model::objects::building::Amenity">Amenity</a>&gt;</pre></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../";window.currentCrate = "convert_osm";</script><script src="../../main.js"></script><script defer src="../../search-index.js"></script></body></html>
<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">&#x2212;</span>]</a></span><a class="srclink" href="../../src/convert_osm/extract.rs.html#533-545" title="goto source code">[src]</a></span><span class="in-band">Function <a href="../index.html">convert_osm</a>::<wbr><a href="index.html">extract</a>::<wbr><a class="fn" href="">get_bldg_amenities</a></span></h1><pre class="rust fn">fn get_bldg_amenities(tags: &amp;<a class="struct" href="../../abstutil/collections/struct.Tags.html" title="struct abstutil::collections::Tags">Tags</a>) -&gt; <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="struct" href="../../map_model/objects/building/struct.Amenity.html" title="struct map_model::objects::building::Amenity">Amenity</a>&gt;</pre></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../";window.currentCrate = "convert_osm";</script><script src="../../main.js"></script><script defer src="../../search-index.js"></script></body></html>

View File

@ -1,4 +1,4 @@
<!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 `is_bldg` fn in crate `convert_osm`."><meta name="keywords" content="rust, rustlang, rust-lang, is_bldg"><title>convert_osm::extract::is_bldg - 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="../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled ><script id="default-settings"></script><script src="../../storage.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../favicon.svg">
<link rel="alternate icon" type="image/png" href="../../favicon-16x16.png">
<link rel="alternate icon" type="image/png" href="../../favicon-32x32.png"><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">&#9776;</div><a href='../../convert_osm/index.html'><div class='logo-container rust-logo'><img src='../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class="location"><a href="../index.html">convert_osm</a>::<wbr><a href="index.html">extract</a></p><script>window.sidebarCurrent = {name: "is_bldg", 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!" aria-haspopup="menu"><img src="../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></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><span class="help-button">?</span>
<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">&#x2212;</span>]</a></span><a class="srclink" href="../../src/convert_osm/extract.rs.html#525-528" title="goto source code">[src]</a></span><span class="in-band">Function <a href="../index.html">convert_osm</a>::<wbr><a href="index.html">extract</a>::<wbr><a class="fn" href="">is_bldg</a></span></h1><pre class="rust fn">fn is_bldg(tags: &amp;<a class="struct" href="../../abstutil/collections/struct.Tags.html" title="struct abstutil::collections::Tags">Tags</a>) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></pre></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../";window.currentCrate = "convert_osm";</script><script src="../../main.js"></script><script defer src="../../search-index.js"></script></body></html>
<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">&#x2212;</span>]</a></span><a class="srclink" href="../../src/convert_osm/extract.rs.html#528-531" title="goto source code">[src]</a></span><span class="in-band">Function <a href="../index.html">convert_osm</a>::<wbr><a href="index.html">extract</a>::<wbr><a class="fn" href="">is_bldg</a></span></h1><pre class="rust fn">fn is_bldg(tags: &amp;<a class="struct" href="../../abstutil/collections/struct.Tags.html" title="struct abstutil::collections::Tags">Tags</a>) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></pre></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../";window.currentCrate = "convert_osm";</script><script src="../../main.js"></script><script defer src="../../search-index.js"></script></body></html>

View File

@ -1,4 +1,4 @@
<!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 `is_road` fn in crate `convert_osm`."><meta name="keywords" content="rust, rustlang, rust-lang, is_road"><title>convert_osm::extract::is_road - 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="../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled ><script id="default-settings"></script><script src="../../storage.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../favicon.svg">
<link rel="alternate icon" type="image/png" href="../../favicon-16x16.png">
<link rel="alternate icon" type="image/png" href="../../favicon-32x32.png"><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">&#9776;</div><a href='../../convert_osm/index.html'><div class='logo-container rust-logo'><img src='../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class="location"><a href="../index.html">convert_osm</a>::<wbr><a href="index.html">extract</a></p><script>window.sidebarCurrent = {name: "is_road", 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!" aria-haspopup="menu"><img src="../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></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><span class="help-button">?</span>
<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">&#x2212;</span>]</a></span><a class="srclink" href="../../src/convert_osm/extract.rs.html#390-523" title="goto source code">[src]</a></span><span class="in-band">Function <a href="../index.html">convert_osm</a>::<wbr><a href="index.html">extract</a>::<wbr><a class="fn" href="">is_road</a></span></h1><pre class="rust fn">fn is_road(tags: &amp;mut <a class="struct" href="../../abstutil/collections/struct.Tags.html" title="struct abstutil::collections::Tags">Tags</a>, opts: &amp;<a class="struct" href="../../convert_osm/struct.Options.html" title="struct convert_osm::Options">Options</a>) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></pre></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../";window.currentCrate = "convert_osm";</script><script src="../../main.js"></script><script defer src="../../search-index.js"></script></body></html>
<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">&#x2212;</span>]</a></span><a class="srclink" href="../../src/convert_osm/extract.rs.html#393-526" title="goto source code">[src]</a></span><span class="in-band">Function <a href="../index.html">convert_osm</a>::<wbr><a href="index.html">extract</a>::<wbr><a class="fn" href="">is_road</a></span></h1><pre class="rust fn">fn is_road(tags: &amp;mut <a class="struct" href="../../abstutil/collections/struct.Tags.html" title="struct abstutil::collections::Tags">Tags</a>, opts: &amp;<a class="struct" href="../../convert_osm/struct.Options.html" title="struct convert_osm::Options">Options</a>) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></pre></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../";window.currentCrate = "convert_osm";</script><script src="../../main.js"></script><script defer src="../../search-index.js"></script></body></html>

View File

@ -1,6 +1,6 @@
<!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 `extract` mod in crate `convert_osm`."><meta name="keywords" content="rust, rustlang, rust-lang, extract"><title>convert_osm::extract - 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="../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled ><script id="default-settings"></script><script src="../../storage.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../favicon.svg">
<link rel="alternate icon" type="image/png" href="../../favicon-16x16.png">
<link rel="alternate icon" type="image/png" href="../../favicon-32x32.png"><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">&#9776;</div><a href='../../convert_osm/index.html'><div class='logo-container rust-logo'><img src='../../rust-logo.png' alt='logo'></div></a><p class="location">Module extract</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">convert_osm</a></p><script>window.sidebarCurrent = {name: "extract", 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!" aria-haspopup="menu"><img src="../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></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><span class="help-button">?</span>
<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">&#x2212;</span>]</a></span><a class="srclink" href="../../src/convert_osm/extract.rs.html#1-572" title="goto source code">[src]</a></span><span class="in-band">Module <a href="../index.html">convert_osm</a>::<wbr><a class="mod" href="">extract</a></span></h1><h2 id="structs" class="section-header"><a href="#structs">Structs</a></h2>
<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">&#x2212;</span>]</a></span><a class="srclink" href="../../src/convert_osm/extract.rs.html#1-575" title="goto source code">[src]</a></span><span class="in-band">Module <a href="../index.html">convert_osm</a>::<wbr><a class="mod" href="">extract</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.OsmExtract.html" title="convert_osm::extract::OsmExtract struct">OsmExtract</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.extract_osm.html" title="convert_osm::extract::extract_osm fn">extract_osm</a></td><td class="docblock-short"></td></tr><tr class="module-item"><td><a class="fn" href="fn.get_area_type.html" title="convert_osm::extract::get_area_type fn">get_area_type</a></td><td class="docblock-short"></td></tr><tr class="module-item"><td><a class="fn" href="fn.get_bldg_amenities.html" title="convert_osm::extract::get_bldg_amenities fn">get_bldg_amenities</a></td><td class="docblock-short"></td></tr><tr class="module-item"><td><a class="fn" href="fn.is_bldg.html" title="convert_osm::extract::is_bldg fn">is_bldg</a></td><td class="docblock-short"></td></tr><tr class="module-item"><td><a class="fn" href="fn.is_road.html" title="convert_osm::extract::is_road fn">is_road</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 = "convert_osm";</script><script src="../../main.js"></script><script defer src="../../search-index.js"></script></body></html>

View File

@ -3,14 +3,14 @@
<link rel="alternate icon" type="image/png" href="../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc struct"><!--[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">&#9776;</div><a href='../../convert_osm/index.html'><div class='logo-container rust-logo'><img src='../../rust-logo.png' alt='logo'></div></a><p class="location">Struct OsmExtract</p><div class="sidebar-elems"><div class="block items"><a class="sidebar-title" href="#fields">Fields</a><div class="sidebar-links"><a href="#structfield.amenities">amenities</a><a href="#structfield.complicated_turn_restrictions">complicated_turn_restrictions</a><a href="#structfield.osm_node_ids">osm_node_ids</a><a href="#structfield.roads">roads</a><a href="#structfield.simple_turn_restrictions">simple_turn_restrictions</a><a href="#structfield.traffic_signals">traffic_signals</a></div><a class="sidebar-title" href="#synthetic-implementations">Auto Trait Implementations</a><div class="sidebar-links"><a href="#impl-RefUnwindSafe">RefUnwindSafe</a><a href="#impl-Send">Send</a><a href="#impl-Sync">Sync</a><a href="#impl-Unpin">Unpin</a><a href="#impl-UnwindSafe">UnwindSafe</a></div><a class="sidebar-title" href="#blanket-implementations">Blanket Implementations</a><div class="sidebar-links"><a href="#impl-Any">Any</a><a href="#impl-Borrow%3CT%3E">Borrow&lt;T&gt;</a><a href="#impl-BorrowMut%3CT%3E">BorrowMut&lt;T&gt;</a><a href="#impl-From%3CT%3E">From&lt;T&gt;</a><a href="#impl-Into%3CU%3E">Into&lt;U&gt;</a><a href="#impl-Same%3CT%3E">Same&lt;T&gt;</a><a href="#impl-TryFrom%3CU%3E">TryFrom&lt;U&gt;</a><a href="#impl-TryInto%3CU%3E">TryInto&lt;U&gt;</a><a href="#impl-VZip%3CV%3E">VZip&lt;V&gt;</a></div></div><p class="location"><a href="../index.html">convert_osm</a>::<wbr><a href="index.html">extract</a></p><script>window.sidebarCurrent = {name: "OsmExtract", ty: "struct", relpath: ""};</script><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></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><span class="help-button">?</span>
<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">&#x2212;</span>]</a></span><a class="srclink" href="../../src/convert_osm/extract.rs.html#15-27" title="goto source code">[src]</a></span><span class="in-band">Struct <a href="../index.html">convert_osm</a>::<wbr><a href="index.html">extract</a>::<wbr><a class="struct" href="">OsmExtract</a></span></h1><div class="docblock type-decl hidden-by-usual-hider"><pre class="rust struct">pub struct OsmExtract {
pub roads: <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(</a><a class="struct" href="../../map_model/osm/struct.WayID.html" title="struct map_model::osm::WayID">WayID</a>, <a class="struct" href="../../map_model/raw/struct.RawRoad.html" title="struct map_model::raw::RawRoad">RawRoad</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">)</a>&gt;,
pub traffic_signals: <a class="struct" href="https://doc.rust-lang.org/nightly/std/collections/hash/map/struct.HashMap.html" title="struct std::collections::hash::map::HashMap">HashMap</a>&lt;<a class="struct" href="../../geom/pt/struct.HashablePt2D.html" title="struct geom::pt::HashablePt2D">HashablePt2D</a>, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a>&gt;,
pub traffic_signals: <a class="struct" href="https://doc.rust-lang.org/nightly/std/collections/hash/map/struct.HashMap.html" title="struct std::collections::hash::map::HashMap">HashMap</a>&lt;<a class="struct" href="../../geom/pt/struct.HashablePt2D.html" title="struct geom::pt::HashablePt2D">HashablePt2D</a>, <a class="enum" href="../../map_model/objects/road/enum.Direction.html" title="enum map_model::objects::road::Direction">Direction</a>&gt;,
pub osm_node_ids: <a class="struct" href="https://doc.rust-lang.org/nightly/std/collections/hash/map/struct.HashMap.html" title="struct std::collections::hash::map::HashMap">HashMap</a>&lt;<a class="struct" href="../../geom/pt/struct.HashablePt2D.html" title="struct geom::pt::HashablePt2D">HashablePt2D</a>, <a class="struct" href="../../map_model/osm/struct.NodeID.html" title="struct map_model::osm::NodeID">NodeID</a>&gt;,
pub simple_turn_restrictions: <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(</a><a class="enum" href="../../map_model/raw/enum.RestrictionType.html" title="enum map_model::raw::RestrictionType">RestrictionType</a>, <a class="struct" href="../../map_model/osm/struct.WayID.html" title="struct map_model::osm::WayID">WayID</a>, <a class="struct" href="../../map_model/osm/struct.NodeID.html" title="struct map_model::osm::NodeID">NodeID</a>, <a class="struct" href="../../map_model/osm/struct.WayID.html" title="struct map_model::osm::WayID">WayID</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">)</a>&gt;,
pub complicated_turn_restrictions: <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(</a><a class="struct" href="../../map_model/osm/struct.RelationID.html" title="struct map_model::osm::RelationID">RelationID</a>, <a class="struct" href="../../map_model/osm/struct.WayID.html" title="struct map_model::osm::WayID">WayID</a>, <a class="struct" href="../../map_model/osm/struct.WayID.html" title="struct map_model::osm::WayID">WayID</a>, <a class="struct" href="../../map_model/osm/struct.WayID.html" title="struct map_model::osm::WayID">WayID</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">)</a>&gt;,
pub amenities: <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(</a><a class="struct" href="../../geom/pt/struct.Pt2D.html" title="struct geom::pt::Pt2D">Pt2D</a>, <a class="struct" href="../../map_model/objects/building/struct.Amenity.html" title="struct map_model::objects::building::Amenity">Amenity</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">)</a>&gt;,
}</pre></div><h2 id="fields" class="fields small-section-header">
Fields<a href="#fields" class="anchor"></a></h2><span id="structfield.roads" class="structfield small-section-header"><a href="#structfield.roads" class="anchor field"></a><code>roads: <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(</a><a class="struct" href="../../map_model/osm/struct.WayID.html" title="struct map_model::osm::WayID">WayID</a>, <a class="struct" href="../../map_model/raw/struct.RawRoad.html" title="struct map_model::raw::RawRoad">RawRoad</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">)</a>&gt;</code></span><div class="docblock"><p>Unsplit roads</p>
</div><span id="structfield.traffic_signals" class="structfield small-section-header"><a href="#structfield.traffic_signals" class="anchor field"></a><code>traffic_signals: <a class="struct" href="https://doc.rust-lang.org/nightly/std/collections/hash/map/struct.HashMap.html" title="struct std::collections::hash::map::HashMap">HashMap</a>&lt;<a class="struct" href="../../geom/pt/struct.HashablePt2D.html" title="struct geom::pt::HashablePt2D">HashablePt2D</a>, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a>&gt;</code></span><div class="docblock"><p>Traffic signals to the direction they apply (or just true if unspecified)</p>
</div><span id="structfield.traffic_signals" class="structfield small-section-header"><a href="#structfield.traffic_signals" class="anchor field"></a><code>traffic_signals: <a class="struct" href="https://doc.rust-lang.org/nightly/std/collections/hash/map/struct.HashMap.html" title="struct std::collections::hash::map::HashMap">HashMap</a>&lt;<a class="struct" href="../../geom/pt/struct.HashablePt2D.html" title="struct geom::pt::HashablePt2D">HashablePt2D</a>, <a class="enum" href="../../map_model/objects/road/enum.Direction.html" title="enum map_model::objects::road::Direction">Direction</a>&gt;</code></span><div class="docblock"><p>Traffic signals to the direction they apply</p>
</div><span id="structfield.osm_node_ids" class="structfield small-section-header"><a href="#structfield.osm_node_ids" class="anchor field"></a><code>osm_node_ids: <a class="struct" href="https://doc.rust-lang.org/nightly/std/collections/hash/map/struct.HashMap.html" title="struct std::collections::hash::map::HashMap">HashMap</a>&lt;<a class="struct" href="../../geom/pt/struct.HashablePt2D.html" title="struct geom::pt::HashablePt2D">HashablePt2D</a>, <a class="struct" href="../../map_model/osm/struct.NodeID.html" title="struct map_model::osm::NodeID">NodeID</a>&gt;</code></span><span id="structfield.simple_turn_restrictions" class="structfield small-section-header"><a href="#structfield.simple_turn_restrictions" class="anchor field"></a><code>simple_turn_restrictions: <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(</a><a class="enum" href="../../map_model/raw/enum.RestrictionType.html" title="enum map_model::raw::RestrictionType">RestrictionType</a>, <a class="struct" href="../../map_model/osm/struct.WayID.html" title="struct map_model::osm::WayID">WayID</a>, <a class="struct" href="../../map_model/osm/struct.NodeID.html" title="struct map_model::osm::NodeID">NodeID</a>, <a class="struct" href="../../map_model/osm/struct.WayID.html" title="struct map_model::osm::WayID">WayID</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">)</a>&gt;</code></span><div class="docblock"><p>(ID, restriction type, from way ID, via node ID, to way ID)</p>
</div><span id="structfield.complicated_turn_restrictions" class="structfield small-section-header"><a href="#structfield.complicated_turn_restrictions" class="anchor field"></a><code>complicated_turn_restrictions: <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(</a><a class="struct" href="../../map_model/osm/struct.RelationID.html" title="struct map_model::osm::RelationID">RelationID</a>, <a class="struct" href="../../map_model/osm/struct.WayID.html" title="struct map_model::osm::WayID">WayID</a>, <a class="struct" href="../../map_model/osm/struct.WayID.html" title="struct map_model::osm::WayID">WayID</a>, <a class="struct" href="../../map_model/osm/struct.WayID.html" title="struct map_model::osm::WayID">WayID</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">)</a>&gt;</code></span><div class="docblock"><p>(relation ID, from way ID, via way ID, to way ID)</p>
</div><span id="structfield.amenities" class="structfield small-section-header"><a href="#structfield.amenities" class="anchor field"></a><code>amenities: <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(</a><a class="struct" href="../../geom/pt/struct.Pt2D.html" title="struct geom::pt::Pt2D">Pt2D</a>, <a class="struct" href="../../map_model/objects/building/struct.Amenity.html" title="struct map_model::objects::building::Amenity">Amenity</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">)</a>&gt;</code></span><div class="docblock"><p>(location, amenity)</p>

View File

@ -1,4 +1,4 @@
<!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 `dedupe_angles` fn in crate `convert_osm`."><meta name="keywords" content="rust, rustlang, rust-lang, dedupe_angles"><title>convert_osm::split_ways::dedupe_angles - 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="../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled ><script id="default-settings"></script><script src="../../storage.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../favicon.svg">
<link rel="alternate icon" type="image/png" href="../../favicon-16x16.png">
<link rel="alternate icon" type="image/png" href="../../favicon-32x32.png"><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">&#9776;</div><a href='../../convert_osm/index.html'><div class='logo-container rust-logo'><img src='../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class="location"><a href="../index.html">convert_osm</a>::<wbr><a href="index.html">split_ways</a></p><script>window.sidebarCurrent = {name: "dedupe_angles", 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!" aria-haspopup="menu"><img src="../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></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><span class="help-button">?</span>
<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">&#x2212;</span>]</a></span><a class="srclink" href="../../src/convert_osm/split_ways.rs.html#198-215" title="goto source code">[src]</a></span><span class="in-band">Function <a href="../index.html">convert_osm</a>::<wbr><a href="index.html">split_ways</a>::<wbr><a class="fn" href="">dedupe_angles</a></span></h1><pre class="rust fn">fn dedupe_angles(pts: <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="struct" href="../../geom/pt/struct.Pt2D.html" title="struct geom::pt::Pt2D">Pt2D</a>&gt;) -&gt; <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="struct" href="../../geom/pt/struct.Pt2D.html" title="struct geom::pt::Pt2D">Pt2D</a>&gt;</pre></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../";window.currentCrate = "convert_osm";</script><script src="../../main.js"></script><script defer src="../../search-index.js"></script></body></html>
<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">&#x2212;</span>]</a></span><a class="srclink" href="../../src/convert_osm/split_ways.rs.html#194-211" title="goto source code">[src]</a></span><span class="in-band">Function <a href="../index.html">convert_osm</a>::<wbr><a href="index.html">split_ways</a>::<wbr><a class="fn" href="">dedupe_angles</a></span></h1><pre class="rust fn">fn dedupe_angles(pts: <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="struct" href="../../geom/pt/struct.Pt2D.html" title="struct geom::pt::Pt2D">Pt2D</a>&gt;) -&gt; <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="struct" href="../../geom/pt/struct.Pt2D.html" title="struct geom::pt::Pt2D">Pt2D</a>&gt;</pre></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../";window.currentCrate = "convert_osm";</script><script src="../../main.js"></script><script defer src="../../search-index.js"></script></body></html>

View File

@ -1,6 +1,6 @@
<!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 `split_up_roads` fn in crate `convert_osm`."><meta name="keywords" content="rust, rustlang, rust-lang, split_up_roads"><title>convert_osm::split_ways::split_up_roads - 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="../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled ><script id="default-settings"></script><script src="../../storage.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../favicon.svg">
<link rel="alternate icon" type="image/png" href="../../favicon-16x16.png">
<link rel="alternate icon" type="image/png" href="../../favicon-32x32.png"><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">&#9776;</div><a href='../../convert_osm/index.html'><div class='logo-container rust-logo'><img src='../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class="location"><a href="../index.html">convert_osm</a>::<wbr><a href="index.html">split_ways</a></p><script>window.sidebarCurrent = {name: "split_up_roads", 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!" aria-haspopup="menu"><img src="../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></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><span class="help-button">?</span>
<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">&#x2212;</span>]</a></span><a class="srclink" href="../../src/convert_osm/split_ways.rs.html#12-195" title="goto source code">[src]</a></span><span class="in-band">Function <a href="../index.html">convert_osm</a>::<wbr><a href="index.html">split_ways</a>::<wbr><a class="fn" href="">split_up_roads</a></span></h1><pre class="rust fn">pub fn split_up_roads(<br>&nbsp;&nbsp;&nbsp;&nbsp;map: &amp;mut <a class="struct" href="../../map_model/raw/struct.RawMap.html" title="struct map_model::raw::RawMap">RawMap</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;input: <a class="struct" href="../../convert_osm/extract/struct.OsmExtract.html" title="struct convert_osm::extract::OsmExtract">OsmExtract</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;timer: &amp;mut <a class="struct" href="../../abstutil/time/struct.Timer.html" title="struct abstutil::time::Timer">Timer</a>&lt;'_&gt;<br>) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(</a><a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(</a><a class="struct" href="../../geom/pt/struct.Pt2D.html" title="struct geom::pt::Pt2D">Pt2D</a>, <a class="struct" href="../../map_model/objects/building/struct.Amenity.html" title="struct map_model::objects::building::Amenity">Amenity</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">)</a>&gt;, <a class="struct" href="https://doc.rust-lang.org/nightly/std/collections/hash/map/struct.HashMap.html" title="struct std::collections::hash::map::HashMap">HashMap</a>&lt;<a class="struct" href="../../geom/pt/struct.HashablePt2D.html" title="struct geom::pt::HashablePt2D">HashablePt2D</a>, <a class="struct" href="../../map_model/raw/struct.OriginalRoad.html" title="struct map_model::raw::OriginalRoad">OriginalRoad</a>&gt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">)</a></pre><div class="docblock"><p>Returns amenities and a mapping of all points to split road. (Some internal points on roads are
removed, so this mapping isn't redundant.)</p>
<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">&#x2212;</span>]</a></span><a class="srclink" href="../../src/convert_osm/split_ways.rs.html#12-191" title="goto source code">[src]</a></span><span class="in-band">Function <a href="../index.html">convert_osm</a>::<wbr><a href="index.html">split_ways</a>::<wbr><a class="fn" href="">split_up_roads</a></span></h1><pre class="rust fn">pub fn split_up_roads(<br>&nbsp;&nbsp;&nbsp;&nbsp;map: &amp;mut <a class="struct" href="../../map_model/raw/struct.RawMap.html" title="struct map_model::raw::RawMap">RawMap</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;input: <a class="struct" href="../../convert_osm/extract/struct.OsmExtract.html" title="struct convert_osm::extract::OsmExtract">OsmExtract</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;timer: &amp;mut <a class="struct" href="../../abstutil/time/struct.Timer.html" title="struct abstutil::time::Timer">Timer</a>&lt;'_&gt;<br>) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(</a><a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(</a><a class="struct" href="../../geom/pt/struct.Pt2D.html" title="struct geom::pt::Pt2D">Pt2D</a>, <a class="struct" href="../../map_model/objects/building/struct.Amenity.html" title="struct map_model::objects::building::Amenity">Amenity</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">)</a>&gt;, <a class="struct" href="https://doc.rust-lang.org/nightly/std/collections/hash/map/struct.HashMap.html" title="struct std::collections::hash::map::HashMap">HashMap</a>&lt;<a class="struct" href="../../geom/pt/struct.HashablePt2D.html" title="struct geom::pt::HashablePt2D">HashablePt2D</a>, <a class="struct" href="../../map_model/raw/struct.OriginalRoad.html" title="struct map_model::raw::OriginalRoad">OriginalRoad</a>&gt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">)</a></pre><div class="docblock"><p>Returns amenities and a mapping of all points to split road. (Some internal points on roads get
removed in this call, so this mapping isn't redundant.)</p>
</div></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../";window.currentCrate = "convert_osm";</script><script src="../../main.js"></script><script defer src="../../search-index.js"></script></body></html>

View File

@ -1,7 +1,7 @@
<!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 `split_ways` mod in crate `convert_osm`."><meta name="keywords" content="rust, rustlang, rust-lang, split_ways"><title>convert_osm::split_ways - 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="../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled ><script id="default-settings"></script><script src="../../storage.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../favicon.svg">
<link rel="alternate icon" type="image/png" href="../../favicon-16x16.png">
<link rel="alternate icon" type="image/png" href="../../favicon-32x32.png"><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">&#9776;</div><a href='../../convert_osm/index.html'><div class='logo-container rust-logo'><img src='../../rust-logo.png' alt='logo'></div></a><p class="location">Module split_ways</p><div class="sidebar-elems"><div class="block items"><ul><li><a href="#functions">Functions</a></li></ul></div><p class="location"><a href="../index.html">convert_osm</a></p><script>window.sidebarCurrent = {name: "split_ways", 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!" aria-haspopup="menu"><img src="../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></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><span class="help-button">?</span>
<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">&#x2212;</span>]</a></span><a class="srclink" href="../../src/convert_osm/split_ways.rs.html#1-215" title="goto source code">[src]</a></span><span class="in-band">Module <a href="../index.html">convert_osm</a>::<wbr><a class="mod" href="">split_ways</a></span></h1><h2 id="functions" class="section-header"><a href="#functions">Functions</a></h2>
<table><tr class="module-item"><td><a class="fn" href="fn.dedupe_angles.html" title="convert_osm::split_ways::dedupe_angles fn">dedupe_angles</a></td><td class="docblock-short"></td></tr><tr class="module-item"><td><a class="fn" href="fn.split_up_roads.html" title="convert_osm::split_ways::split_up_roads fn">split_up_roads</a></td><td class="docblock-short"><p>Returns amenities and a mapping of all points to split road. (Some internal points on roads are
removed, so this mapping isn't redundant.)</p>
<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">&#x2212;</span>]</a></span><a class="srclink" href="../../src/convert_osm/split_ways.rs.html#1-211" title="goto source code">[src]</a></span><span class="in-band">Module <a href="../index.html">convert_osm</a>::<wbr><a class="mod" href="">split_ways</a></span></h1><h2 id="functions" class="section-header"><a href="#functions">Functions</a></h2>
<table><tr class="module-item"><td><a class="fn" href="fn.dedupe_angles.html" title="convert_osm::split_ways::dedupe_angles fn">dedupe_angles</a></td><td class="docblock-short"></td></tr><tr class="module-item"><td><a class="fn" href="fn.split_up_roads.html" title="convert_osm::split_ways::split_up_roads fn">split_up_roads</a></td><td class="docblock-short"><p>Returns amenities and a mapping of all points to split road. (Some internal points on roads get
removed in this call, so this mapping isn't redundant.)</p>
</td></tr></table></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../";window.currentCrate = "convert_osm";</script><script src="../../main.js"></script><script defer src="../../search-index.js"></script></body></html>

View File

@ -1 +1 @@
initSidebarItems({"fn":[["dedupe_angles",""],["split_up_roads","Returns amenities and a mapping of all points to split road. (Some internal points on roads are removed, so this mapping isn't redundant.)"]]});
initSidebarItems({"fn":[["dedupe_angles",""],["split_up_roads","Returns amenities and a mapping of all points to split road. (Some internal points on roads get removed in this call, so this mapping isn't redundant.)"]]});

View File

@ -1,5 +1,5 @@
<!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="../../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../../ayu.css" disabled ><script id="default-settings"></script><script src="../../../storage.js"></script><noscript><link rel="stylesheet" href="../../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../../favicon.svg">
<link rel="alternate icon" type="image/png" href="../../../favicon-16x16.png">
<link rel="alternate icon" type="image/png" href="../../../favicon-32x32.png"><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">&#9776;</div><a href='../../../game/index.html'><div class='logo-container rust-logo'><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!" aria-haspopup="menu"><img src="../../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></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><span class="help-button">?</span>
<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">&#x2212;</span>]</a></span><a class="srclink" href="../../../src/game/home/runner/work/abstreet/abstreet/target/debug/build/game-b5501e76eef510ad/out/built.rs.html#53" 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: &amp;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a> = &quot;Mon, 25 Jan 2021 04:46:08 +0000&quot;;</pre><div class="docblock"><p>The built-time in RFC2822, UTC</p>
<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">&#x2212;</span>]</a></span><a class="srclink" href="../../../src/game/home/runner/work/abstreet/abstreet/target/debug/build/game-b5501e76eef510ad/out/built.rs.html#53" 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: &amp;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a> = &quot;Mon, 25 Jan 2021 18:16:54 +0000&quot;;</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>

File diff suppressed because one or more lines are too long

View File

@ -573,6 +573,9 @@
<span id="570">570</span>
<span id="571">571</span>
<span id="572">572</span>
<span id="573">573</span>
<span id="574">574</span>
<span id="575">575</span>
</pre><div class="example-wrap"><pre class="rust ">
<span class="kw">use</span> <span class="ident">std</span>::<span class="ident">collections</span>::{<span class="ident">BTreeMap</span>, <span class="ident">BTreeSet</span>, <span class="ident">HashMap</span>};
@ -583,7 +586,7 @@
<span class="kw">use</span> <span class="ident">geom</span>::{<span class="ident">HashablePt2D</span>, <span class="ident">Polygon</span>, <span class="ident">Pt2D</span>, <span class="ident">Ring</span>};
<span class="kw">use</span> <span class="ident">kml</span>::{<span class="ident">ExtraShape</span>, <span class="ident">ExtraShapes</span>};
<span class="kw">use</span> <span class="ident">map_model</span>::<span class="ident">raw</span>::{<span class="ident">RawArea</span>, <span class="ident">RawBuilding</span>, <span class="ident">RawMap</span>, <span class="ident">RawParkingLot</span>, <span class="ident">RawRoad</span>, <span class="ident">RestrictionType</span>};
<span class="kw">use</span> <span class="ident">map_model</span>::{<span class="ident">osm</span>, <span class="ident">Amenity</span>, <span class="ident">AreaType</span>, <span class="ident">DrivingSide</span>, <span class="ident">NamePerLanguage</span>};
<span class="kw">use</span> <span class="ident">map_model</span>::{<span class="ident">osm</span>, <span class="ident">Amenity</span>, <span class="ident">AreaType</span>, <span class="ident">Direction</span>, <span class="ident">DrivingSide</span>, <span class="ident">NamePerLanguage</span>};
<span class="kw">use</span> <span class="kw">crate</span>::<span class="ident">osm_geom</span>::{<span class="ident">get_multipolygon_members</span>, <span class="ident">glue_multipolygon</span>, <span class="ident">multipoly_geometry</span>};
<span class="kw">use</span> <span class="kw">crate</span>::{<span class="ident">transit</span>, <span class="ident">Options</span>};
@ -591,8 +594,8 @@
<span class="kw">pub</span> <span class="kw">struct</span> <span class="ident">OsmExtract</span> {
<span class="doccomment">/// Unsplit roads</span>
<span class="kw">pub</span> <span class="ident">roads</span>: <span class="ident">Vec</span><span class="op">&lt;</span>(<span class="ident">WayID</span>, <span class="ident">RawRoad</span>)<span class="op">&gt;</span>,
<span class="doccomment">/// Traffic signals to the direction they apply (or just true if unspecified)</span>
<span class="kw">pub</span> <span class="ident">traffic_signals</span>: <span class="ident">HashMap</span><span class="op">&lt;</span><span class="ident">HashablePt2D</span>, <span class="ident">bool</span><span class="op">&gt;</span>,
<span class="doccomment">/// Traffic signals to the direction they apply</span>
<span class="kw">pub</span> <span class="ident">traffic_signals</span>: <span class="ident">HashMap</span><span class="op">&lt;</span><span class="ident">HashablePt2D</span>, <span class="ident">Direction</span><span class="op">&gt;</span>,
<span class="kw">pub</span> <span class="ident">osm_node_ids</span>: <span class="ident">HashMap</span><span class="op">&lt;</span><span class="ident">HashablePt2D</span>, <span class="ident">NodeID</span><span class="op">&gt;</span>,
<span class="doccomment">/// (ID, restriction type, from way ID, via node ID, to way ID)</span>
<span class="kw">pub</span> <span class="ident">simple_turn_restrictions</span>: <span class="ident">Vec</span><span class="op">&lt;</span>(<span class="ident">RestrictionType</span>, <span class="ident">WayID</span>, <span class="ident">NodeID</span>, <span class="ident">WayID</span>)<span class="op">&gt;</span>,
@ -645,9 +648,12 @@
<span class="ident">out</span>.<span class="ident">osm_node_ids</span>.<span class="ident">insert</span>(<span class="ident">node</span>.<span class="ident">pt</span>.<span class="ident">to_hashable</span>(), <span class="kw-2">*</span><span class="ident">id</span>);
<span class="kw">if</span> <span class="ident">node</span>.<span class="ident">tags</span>.<span class="ident">is</span>(<span class="ident">osm</span>::<span class="ident">HIGHWAY</span>, <span class="string">&quot;traffic_signals&quot;</span>) {
<span class="kw">let</span> <span class="ident">backwards</span> <span class="op">=</span> <span class="ident">node</span>.<span class="ident">tags</span>.<span class="ident">is</span>(<span class="string">&quot;traffic_signals:direction&quot;</span>, <span class="string">&quot;backward&quot;</span>);
<span class="ident">out</span>.<span class="ident">traffic_signals</span>
.<span class="ident">insert</span>(<span class="ident">node</span>.<span class="ident">pt</span>.<span class="ident">to_hashable</span>(), <span class="op">!</span><span class="ident">backwards</span>);
<span class="kw">let</span> <span class="ident">dir</span> <span class="op">=</span> <span class="kw">if</span> <span class="ident">node</span>.<span class="ident">tags</span>.<span class="ident">is</span>(<span class="string">&quot;traffic_signals:direction&quot;</span>, <span class="string">&quot;backward&quot;</span>) {
<span class="ident">Direction</span>::<span class="ident">Back</span>
} <span class="kw">else</span> {
<span class="ident">Direction</span>::<span class="ident">Fwd</span>
};
<span class="ident">out</span>.<span class="ident">traffic_signals</span>.<span class="ident">insert</span>(<span class="ident">node</span>.<span class="ident">pt</span>.<span class="ident">to_hashable</span>(), <span class="ident">dir</span>);
}
<span class="kw">for</span> <span class="ident">amenity</span> <span class="kw">in</span> <span class="ident">get_bldg_amenities</span>(<span class="kw-2">&amp;</span><span class="ident">node</span>.<span class="ident">tags</span>) {
<span class="ident">out</span>.<span class="ident">amenities</span>.<span class="ident">push</span>((<span class="ident">node</span>.<span class="ident">pt</span>, <span class="ident">amenity</span>));

View File

@ -212,22 +212,18 @@
<span id="209">209</span>
<span id="210">210</span>
<span id="211">211</span>
<span id="212">212</span>
<span id="213">213</span>
<span id="214">214</span>
<span id="215">215</span>
</pre><div class="example-wrap"><pre class="rust ">
<span class="kw">use</span> <span class="ident">std</span>::<span class="ident">collections</span>::<span class="ident">HashMap</span>;
<span class="kw">use</span> <span class="ident">abstutil</span>::{<span class="ident">Counter</span>, <span class="ident">Timer</span>};
<span class="kw">use</span> <span class="ident">geom</span>::{<span class="ident">Distance</span>, <span class="ident">HashablePt2D</span>, <span class="ident">Pt2D</span>};
<span class="kw">use</span> <span class="ident">map_model</span>::<span class="ident">raw</span>::{<span class="ident">OriginalRoad</span>, <span class="ident">RawIntersection</span>, <span class="ident">RawMap</span>};
<span class="kw">use</span> <span class="ident">map_model</span>::{<span class="ident">osm</span>, <span class="ident">Amenity</span>, <span class="ident">IntersectionType</span>};
<span class="kw">use</span> <span class="ident">map_model</span>::{<span class="ident">osm</span>, <span class="ident">Amenity</span>, <span class="ident">Direction</span>, <span class="ident">IntersectionType</span>};
<span class="kw">use</span> <span class="kw">crate</span>::<span class="ident">extract</span>::<span class="ident">OsmExtract</span>;
<span class="doccomment">/// Returns amenities and a mapping of all points to split road. (Some internal points on roads are</span>
<span class="doccomment">/// removed, so this mapping isn&#39;t redundant.)</span>
<span class="doccomment">/// Returns amenities and a mapping of all points to split road. (Some internal points on roads get</span>
<span class="doccomment">/// removed in this call, so this mapping isn&#39;t redundant.)</span>
<span class="kw">pub</span> <span class="kw">fn</span> <span class="ident">split_up_roads</span>(
<span class="ident">map</span>: <span class="kw-2">&amp;</span><span class="kw-2">mut</span> <span class="ident">RawMap</span>,
<span class="kw-2">mut</span> <span class="ident">input</span>: <span class="ident">OsmExtract</span>,
@ -299,8 +295,12 @@
<span class="ident">i1</span>,
<span class="ident">i2</span>: <span class="kw-2">*</span><span class="ident">i2</span>,
};
<span class="kw">for</span> <span class="ident">pt</span> <span class="kw">in</span> <span class="kw-2">&amp;</span><span class="ident">pts</span> {
<span class="ident">pt_to_road</span>.<span class="ident">insert</span>(<span class="ident">pt</span>.<span class="ident">to_hashable</span>(), <span class="ident">id</span>);
<span class="comment">// Note we populate this before dedupe_angles, so even if some points are removed,</span>
<span class="comment">// we can still associate them to the road.</span>
<span class="kw">for</span> (<span class="ident">idx</span>, <span class="ident">pt</span>) <span class="kw">in</span> <span class="ident">pts</span>.<span class="ident">iter</span>().<span class="ident">enumerate</span>() {
<span class="kw">if</span> <span class="ident">idx</span> <span class="op">!</span><span class="op">=</span> <span class="number">0</span> <span class="op">&amp;&amp;</span> <span class="ident">idx</span> <span class="op">!</span><span class="op">=</span> <span class="ident">pts</span>.<span class="ident">len</span>() <span class="op">-</span> <span class="number">1</span> {
<span class="ident">pt_to_road</span>.<span class="ident">insert</span>(<span class="ident">pt</span>.<span class="ident">to_hashable</span>(), <span class="ident">id</span>);
}
}
<span class="ident">r</span>.<span class="ident">center_points</span> <span class="op">=</span> <span class="ident">dedupe_angles</span>(<span class="ident">std</span>::<span class="ident">mem</span>::<span class="ident">replace</span>(<span class="kw-2">&amp;</span><span class="kw-2">mut</span> <span class="ident">pts</span>, <span class="ident">Vec</span>::<span class="ident">new</span>()));
@ -389,19 +389,11 @@
<span class="ident">timer</span>.<span class="ident">start</span>(<span class="string">&quot;match traffic signals to intersections&quot;</span>);
<span class="comment">// Handle traffic signals tagged on incoming ways and not at intersections</span>
<span class="comment">// (https://wiki.openstreetmap.org/wiki/Tag:highway=traffic%20signals?uselang=en#Tag_all_incoming_ways).</span>
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">pt_to_road</span>: <span class="ident">HashMap</span><span class="op">&lt;</span><span class="ident">HashablePt2D</span>, <span class="ident">OriginalRoad</span><span class="op">&gt;</span> <span class="op">=</span> <span class="ident">HashMap</span>::<span class="ident">new</span>();
<span class="kw">for</span> (<span class="ident">id</span>, <span class="ident">r</span>) <span class="kw">in</span> <span class="kw-2">&amp;</span><span class="ident">map</span>.<span class="ident">roads</span> {
<span class="kw">for</span> (<span class="ident">idx</span>, <span class="ident">pt</span>) <span class="kw">in</span> <span class="ident">r</span>.<span class="ident">center_points</span>.<span class="ident">iter</span>().<span class="ident">enumerate</span>() {
<span class="kw">if</span> <span class="ident">idx</span> <span class="op">!</span><span class="op">=</span> <span class="number">0</span> <span class="op">&amp;&amp;</span> <span class="ident">idx</span> <span class="op">!</span><span class="op">=</span> <span class="ident">r</span>.<span class="ident">center_points</span>.<span class="ident">len</span>() <span class="op">-</span> <span class="number">1</span> {
<span class="ident">pt_to_road</span>.<span class="ident">insert</span>(<span class="ident">pt</span>.<span class="ident">to_hashable</span>(), <span class="kw-2">*</span><span class="ident">id</span>);
}
}
}
<span class="kw">for</span> (<span class="ident">pt</span>, <span class="ident">forwards</span>) <span class="kw">in</span> <span class="ident">input</span>.<span class="ident">traffic_signals</span> {
<span class="kw">for</span> (<span class="ident">pt</span>, <span class="ident">dir</span>) <span class="kw">in</span> <span class="ident">input</span>.<span class="ident">traffic_signals</span> {
<span class="kw">if</span> <span class="kw">let</span> <span class="prelude-val">Some</span>(<span class="ident">r</span>) <span class="op">=</span> <span class="ident">pt_to_road</span>.<span class="ident">get</span>(<span class="kw-2">&amp;</span><span class="ident">pt</span>) {
<span class="comment">// Example: https://www.openstreetmap.org/node/26734224</span>
<span class="kw">if</span> <span class="op">!</span><span class="ident">map</span>.<span class="ident">roads</span>[<span class="ident">r</span>].<span class="ident">osm_tags</span>.<span class="ident">is</span>(<span class="ident">osm</span>::<span class="ident">HIGHWAY</span>, <span class="string">&quot;construction&quot;</span>) {
<span class="kw">let</span> <span class="ident">i</span> <span class="op">=</span> <span class="kw">if</span> <span class="ident">forwards</span> { <span class="ident">r</span>.<span class="ident">i2</span> } <span class="kw">else</span> { <span class="ident">r</span>.<span class="ident">i1</span> };
<span class="kw">let</span> <span class="ident">i</span> <span class="op">=</span> <span class="kw">if</span> <span class="ident">dir</span> <span class="op">=</span><span class="op">=</span> <span class="ident">Direction</span>::<span class="ident">Fwd</span> { <span class="ident">r</span>.<span class="ident">i2</span> } <span class="kw">else</span> { <span class="ident">r</span>.<span class="ident">i1</span> };
<span class="ident">map</span>.<span class="ident">intersections</span>.<span class="ident">get_mut</span>(<span class="kw-2">&amp;</span><span class="ident">i</span>).<span class="ident">unwrap</span>().<span class="ident">intersection_type</span> <span class="op">=</span>
<span class="ident">IntersectionType</span>::<span class="ident">TrafficSignal</span>;
}

View File

@ -122,7 +122,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">&amp;</span><span class="ident">str</span> <span class="op">=</span> <span class="string">&quot;rustdoc 1.49.0 (e1884a8e3 2020-12-29)&quot;</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">&amp;</span><span class="ident">str</span> <span class="op">=</span> <span class="string">&quot;Mon, 25 Jan 2021 04:46:08 +0000&quot;</span>;
<span class="kw">pub</span> <span class="kw">const</span> <span class="ident">BUILT_TIME_UTC</span>: <span class="kw-2">&amp;</span><span class="ident">str</span> <span class="op">=</span> <span class="string">&quot;Mon, 25 Jan 2021 18:16:54 +0000&quot;</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">&amp;</span><span class="ident">str</span> <span class="op">=</span> <span class="string">&quot;x86_64&quot;</span>;
<span class="doccomment">/// The endianness, given by `cfg!(target_endian)`.</span>