mirror of
https://github.com/a-b-street/abstreet.git
synced 2024-12-25 23:43:25 +03:00
deploy: 6ceac88cbe
This commit is contained in:
parent
ad828a44a4
commit
685bc8a7df
@ -3,4 +3,4 @@
|
|||||||
<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">☰</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">Crate convert_osm</p><div class="block version"><p>Version 0.1.0</p></div><a id="all-types" href="index.html"><p>Back to index</p></a></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><button type="button" class="help-button">?</button>
|
<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">☰</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">Crate convert_osm</p><div class="block version"><p>Version 0.1.0</p></div><a id="all-types" href="index.html"><p>Back to index</p></a></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><button type="button" class="help-button">?</button>
|
||||||
<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 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>
|
||||||
</span>
|
</span>
|
||||||
<span class="in-band">List of all items</span></h1><h3 id="Structs">Structs</h3><ul class="structs docblock"><li><a href="struct.Options.html">Options</a></li><li><a href="extract/struct.OsmExtract.html">extract::OsmExtract</a></li><li><a href="reader/struct.Document.html">reader::Document</a></li><li><a href="reader/struct.Node.html">reader::Node</a></li><li><a href="reader/struct.Relation.html">reader::Relation</a></li><li><a href="reader/struct.Way.html">reader::Way</a></li><li><a href="srtm/struct.Elevation.html">srtm::Elevation</a></li></ul><h3 id="Enums">Enums</h3><ul class="enums docblock"><li><a href="enum.OnstreetParking.html">OnstreetParking</a></li><li><a href="enum.PrivateOffstreetParking.html">PrivateOffstreetParking</a></li><li><a href="enum.PublicOffstreetParking.html">PublicOffstreetParking</a></li></ul><h3 id="Functions">Functions</h3><ul class="functions docblock"><li><a href="fn.add_extra_buildings.html">add_extra_buildings</a></li><li><a href="clip/fn.clip_map.html">clip::clip_map</a></li><li><a href="fn.convert.html">convert</a></li><li><a href="extract/fn.extract_osm.html">extract::extract_osm</a></li><li><a href="extract/fn.get_area_type.html">extract::get_area_type</a></li><li><a href="extract/fn.get_bldg_amenities.html">extract::get_bldg_amenities</a></li><li><a href="extract/fn.is_bldg.html">extract::is_bldg</a></li><li><a href="extract/fn.is_road.html">extract::is_road</a></li><li><a href="osm_geom/fn.get_multipolygon_members.html">osm_geom::get_multipolygon_members</a></li><li><a href="osm_geom/fn.glue_multipolygon.html">osm_geom::glue_multipolygon</a></li><li><a href="osm_geom/fn.glue_to_boundary.html">osm_geom::glue_to_boundary</a></li><li><a href="osm_geom/fn.multipoly_geometry.html">osm_geom::multipoly_geometry</a></li><li><a href="parking/fn.apply_parking.html">parking::apply_parking</a></li><li><a href="parking/fn.apply_private_offstreet_parking.html">parking::apply_private_offstreet_parking</a></li><li><a href="parking/fn.use_offstreet_parking.html">parking::use_offstreet_parking</a></li><li><a href="parking/fn.use_parking_hints.html">parking::use_parking_hints</a></li><li><a href="reader/fn.read.html">reader::read</a></li><li><a href="reader/fn.read_tags.html">reader::read_tags</a></li><li><a href="reader/fn.scrape_bounds.html">reader::scrape_bounds</a></li><li><a href="snappy/fn.dump_output.html">snappy::dump_output</a></li><li><a href="snappy/fn.snap_cycleways.html">snappy::snap_cycleways</a></li><li><a href="snappy/fn.v1.html">snappy::v1</a></li><li><a href="split_ways/fn.dedupe_angles.html">split_ways::dedupe_angles</a></li><li><a href="split_ways/fn.should_collapse_roundabout.html">split_ways::should_collapse_roundabout</a></li><li><a href="split_ways/fn.split_up_roads.html">split_ways::split_up_roads</a></li><li><a href="transit/fn.extract_route.html">transit::extract_route</a></li><li><a href="transit/fn.glue_route.html">transit::glue_route</a></li><li><a href="transit/fn.snap_bus_stops.html">transit::snap_bus_stops</a></li><li><a href="fn.use_amenities.html">use_amenities</a></li><li><a href="fn.use_elevation.html">use_elevation</a></li></ul><h3 id="Constants">Constants</h3><ul class="constants docblock"><li><a href="parking/constant.DIRECTED_ROAD_THICKNESS.html">parking::DIRECTED_ROAD_THICKNESS</a></li><li><a href="srtm/constant.GRID_DIM.html">srtm::GRID_DIM</a></li></ul></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>
|
<span class="in-band">List of all items</span></h1><h3 id="Structs">Structs</h3><ul class="structs docblock"><li><a href="struct.Options.html">Options</a></li><li><a href="extract/struct.OsmExtract.html">extract::OsmExtract</a></li><li><a href="reader/struct.Document.html">reader::Document</a></li><li><a href="reader/struct.Node.html">reader::Node</a></li><li><a href="reader/struct.Relation.html">reader::Relation</a></li><li><a href="reader/struct.Way.html">reader::Way</a></li><li><a href="srtm/struct.Elevation.html">srtm::Elevation</a></li></ul><h3 id="Enums">Enums</h3><ul class="enums docblock"><li><a href="enum.OnstreetParking.html">OnstreetParking</a></li><li><a href="enum.PrivateOffstreetParking.html">PrivateOffstreetParking</a></li><li><a href="enum.PublicOffstreetParking.html">PublicOffstreetParking</a></li></ul><h3 id="Functions">Functions</h3><ul class="functions docblock"><li><a href="fn.add_extra_buildings.html">add_extra_buildings</a></li><li><a href="clip/fn.clip_map.html">clip::clip_map</a></li><li><a href="fn.convert.html">convert</a></li><li><a href="extract/fn.extract_osm.html">extract::extract_osm</a></li><li><a href="extract/fn.find_parking_aisles.html">extract::find_parking_aisles</a></li><li><a href="extract/fn.get_area_type.html">extract::get_area_type</a></li><li><a href="extract/fn.get_bldg_amenities.html">extract::get_bldg_amenities</a></li><li><a href="extract/fn.is_bldg.html">extract::is_bldg</a></li><li><a href="extract/fn.is_road.html">extract::is_road</a></li><li><a href="extract/fn.service_road_crosses_parking_lot.html">extract::service_road_crosses_parking_lot</a></li><li><a href="osm_geom/fn.get_multipolygon_members.html">osm_geom::get_multipolygon_members</a></li><li><a href="osm_geom/fn.glue_multipolygon.html">osm_geom::glue_multipolygon</a></li><li><a href="osm_geom/fn.glue_to_boundary.html">osm_geom::glue_to_boundary</a></li><li><a href="osm_geom/fn.multipoly_geometry.html">osm_geom::multipoly_geometry</a></li><li><a href="parking/fn.apply_parking.html">parking::apply_parking</a></li><li><a href="parking/fn.apply_private_offstreet_parking.html">parking::apply_private_offstreet_parking</a></li><li><a href="parking/fn.use_offstreet_parking.html">parking::use_offstreet_parking</a></li><li><a href="parking/fn.use_parking_hints.html">parking::use_parking_hints</a></li><li><a href="reader/fn.read.html">reader::read</a></li><li><a href="reader/fn.read_tags.html">reader::read_tags</a></li><li><a href="reader/fn.scrape_bounds.html">reader::scrape_bounds</a></li><li><a href="snappy/fn.dump_output.html">snappy::dump_output</a></li><li><a href="snappy/fn.snap_cycleways.html">snappy::snap_cycleways</a></li><li><a href="snappy/fn.v1.html">snappy::v1</a></li><li><a href="split_ways/fn.dedupe_angles.html">split_ways::dedupe_angles</a></li><li><a href="split_ways/fn.should_collapse_roundabout.html">split_ways::should_collapse_roundabout</a></li><li><a href="split_ways/fn.split_up_roads.html">split_ways::split_up_roads</a></li><li><a href="transit/fn.extract_route.html">transit::extract_route</a></li><li><a href="transit/fn.glue_route.html">transit::glue_route</a></li><li><a href="transit/fn.snap_bus_stops.html">transit::snap_bus_stops</a></li><li><a href="fn.use_amenities.html">use_amenities</a></li><li><a href="fn.use_elevation.html">use_elevation</a></li></ul><h3 id="Constants">Constants</h3><ul class="constants docblock"><li><a href="parking/constant.DIRECTED_ROAD_THICKNESS.html">parking::DIRECTED_ROAD_THICKNESS</a></li><li><a href="srtm/constant.GRID_DIM.html">srtm::GRID_DIM</a></li></ul></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>
|
@ -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">
|
<!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-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">☰</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><button type="button" class="help-button">?</button>
|
<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">☰</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><button type="button" class="help-button">?</button>
|
||||||
<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/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> map: &mut <a class="struct" href="../../map_model/raw/struct.RawMap.html" title="struct map_model::raw::RawMap">RawMap</a>, <br> opts: &<a class="struct" href="../../convert_osm/struct.Options.html" title="struct convert_osm::Options">Options</a>, <br> timer: &mut <a class="struct" href="../../abstutil/time/struct.Timer.html" title="struct abstutil::time::Timer">Timer</a><'_><br>) -> <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">−</span>]</a></span><a class="srclink" href="../../src/convert_osm/extract.rs.html#29-382" 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> map: &mut <a class="struct" href="../../map_model/raw/struct.RawMap.html" title="struct map_model::raw::RawMap">RawMap</a>, <br> opts: &<a class="struct" href="../../convert_osm/struct.Options.html" title="struct convert_osm::Options">Options</a>, <br> timer: &mut <a class="struct" href="../../abstutil/time/struct.Timer.html" title="struct abstutil::time::Timer">Timer</a><'_><br>) -> <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>
|
4
rustdoc/convert_osm/extract/fn.find_parking_aisles.html
Normal file
4
rustdoc/convert_osm/extract/fn.find_parking_aisles.html
Normal file
@ -0,0 +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 `find_parking_aisles` fn in crate `convert_osm`."><meta name="keywords" content="rust, rustlang, rust-lang, find_parking_aisles"><title>convert_osm::extract::find_parking_aisles - 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">☰</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: "find_parking_aisles", 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><button type="button" class="help-button">?</button>
|
||||||
|
<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/convert_osm/extract.rs.html#588-618" 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="">find_parking_aisles</a></span></h1><pre class="rust fn">fn find_parking_aisles(map: &mut <a class="struct" href="../../map_model/raw/struct.RawMap.html" title="struct map_model::raw::RawMap">RawMap</a>, roads: &mut <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<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>>)</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>
|
@ -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">
|
<!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-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">☰</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><button type="button" class="help-button">?</button>
|
<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">☰</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><button type="button" class="help-button">?</button>
|
||||||
<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/convert_osm/extract.rs.html#558-593" 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: &<a class="struct" href="../../abstutil/collections/struct.Tags.html" title="struct abstutil::collections::Tags">Tags</a>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="enum" href="../../map_model/objects/area/enum.AreaType.html" title="enum map_model::objects::area::AreaType">AreaType</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">−</span>]</a></span><a class="srclink" href="../../src/convert_osm/extract.rs.html#549-584" 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: &<a class="struct" href="../../abstutil/collections/struct.Tags.html" title="struct abstutil::collections::Tags">Tags</a>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="enum" href="../../map_model/objects/area/enum.AreaType.html" title="enum map_model::objects::area::AreaType">AreaType</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>
|
@ -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">
|
<!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-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">☰</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><button type="button" class="help-button">?</button>
|
<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">☰</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><button type="button" class="help-button">?</button>
|
||||||
<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/convert_osm/extract.rs.html#544-556" 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: &<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/objects/building/struct.Amenity.html" title="struct map_model::objects::building::Amenity">Amenity</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">−</span>]</a></span><a class="srclink" href="../../src/convert_osm/extract.rs.html#535-547" 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: &<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/objects/building/struct.Amenity.html" title="struct map_model::objects::building::Amenity">Amenity</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>
|
@ -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">
|
<!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-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">☰</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><button type="button" class="help-button">?</button>
|
<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">☰</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><button type="button" class="help-button">?</button>
|
||||||
<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/convert_osm/extract.rs.html#539-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="">is_bldg</a></span></h1><pre class="rust fn">fn is_bldg(tags: &<a class="struct" href="../../abstutil/collections/struct.Tags.html" title="struct abstutil::collections::Tags">Tags</a>) -> <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">−</span>]</a></span><a class="srclink" href="../../src/convert_osm/extract.rs.html#530-533" 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: &<a class="struct" href="../../abstutil/collections/struct.Tags.html" title="struct abstutil::collections::Tags">Tags</a>) -> <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>
|
@ -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">
|
<!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-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">☰</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><button type="button" class="help-button">?</button>
|
<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">☰</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><button type="button" class="help-button">?</button>
|
||||||
<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/convert_osm/extract.rs.html#390-537" 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: &mut <a class="struct" href="../../abstutil/collections/struct.Tags.html" title="struct abstutil::collections::Tags">Tags</a>, opts: &<a class="struct" href="../../convert_osm/struct.Options.html" title="struct convert_osm::Options">Options</a>) -> <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">−</span>]</a></span><a class="srclink" href="../../src/convert_osm/extract.rs.html#384-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_road</a></span></h1><pre class="rust fn">fn is_road(tags: &mut <a class="struct" href="../../abstutil/collections/struct.Tags.html" title="struct abstutil::collections::Tags">Tags</a>, opts: &<a class="struct" href="../../convert_osm/struct.Options.html" title="struct convert_osm::Options">Options</a>) -> <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>
|
@ -0,0 +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 `service_road_crosses_parking_lot` fn in crate `convert_osm`."><meta name="keywords" content="rust, rustlang, rust-lang, service_road_crosses_parking_lot"><title>convert_osm::extract::service_road_crosses_parking_lot - 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">☰</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: "service_road_crosses_parking_lot", 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><button type="button" class="help-button">?</button>
|
||||||
|
<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/convert_osm/extract.rs.html#620-641" 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="">service_road_crosses_parking_lot</a></span></h1><pre class="rust fn">fn service_road_crosses_parking_lot(<br> map: &<a class="struct" href="../../map_model/raw/struct.RawMap.html" title="struct map_model::raw::RawMap">RawMap</a>, <br> road: &<a class="struct" href="../../map_model/raw/struct.RawRoad.html" title="struct map_model::raw::RawRoad">RawRoad</a>, <br> candidates: <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a>><br>) -> <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>
|
@ -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">
|
<!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-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">☰</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><button type="button" class="help-button">?</button>
|
<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">☰</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><button type="button" class="help-button">?</button>
|
||||||
<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/convert_osm/extract.rs.html#1-593" 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">−</span>]</a></span><a class="srclink" href="../../src/convert_osm/extract.rs.html#1-641" 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="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>
|
<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.find_parking_aisles.html" title="convert_osm::extract::find_parking_aisles fn">find_parking_aisles</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><tr class="module-item"><td><a class="fn" href="fn.service_road_crosses_parking_lot.html" title="convert_osm::extract::service_road_crosses_parking_lot fn">service_road_crosses_parking_lot</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>
|
@ -1 +1 @@
|
|||||||
initSidebarItems({"fn":[["extract_osm",""],["get_area_type",""],["get_bldg_amenities",""],["is_bldg",""],["is_road",""]],"struct":[["OsmExtract",""]]});
|
initSidebarItems({"fn":[["extract_osm",""],["find_parking_aisles",""],["get_area_type",""],["get_bldg_amenities",""],["is_bldg",""],["is_road",""],["service_road_crosses_parking_lot",""]],"struct":[["OsmExtract",""]]});
|
@ -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">
|
<!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-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">☰</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><button type="button" class="help-button">?</button>
|
<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">☰</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><button type="button" class="help-button">?</button>
|
||||||
<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-a95c4551e63dceca/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: &<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a> = "Sun, 21 Feb 2021 19:49:37 +0000";</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">−</span>]</a></span><a class="srclink" href="../../../src/game/home/runner/work/abstreet/abstreet/target/debug/build/game-a95c4551e63dceca/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: &<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a> = "Mon, 22 Feb 2021 02:37:36 +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>
|
</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,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 `match_points_to_lanes` fn in crate `map_model`."><meta name="keywords" content="rust, rustlang, rust-lang, match_points_to_lanes"><title>map_model::make::match_points_to_lanes - 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">
|
<!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 `match_points_to_lanes` fn in crate `map_model`."><meta name="keywords" content="rust, rustlang, rust-lang, match_points_to_lanes"><title>map_model::make::match_points_to_lanes - 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-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">☰</div><a href='../../map_model/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">map_model</a>::<wbr><a href="index.html">make</a></p><script>window.sidebarCurrent = {name: "match_points_to_lanes", 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><button type="button" class="help-button">?</button>
|
<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">☰</div><a href='../../map_model/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">map_model</a>::<wbr><a href="index.html">make</a></p><script>window.sidebarCurrent = {name: "match_points_to_lanes", 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><button type="button" class="help-button">?</button>
|
||||||
<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/mod.rs.html#399-452" 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 class="fn" href="">match_points_to_lanes</a></span></h1><pre class="rust fn">fn match_points_to_lanes<F: <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.Fn.html" title="trait core::ops::function::Fn">Fn</a>(&<a class="struct" href="../../map_model/objects/lane/struct.Lane.html" title="struct map_model::objects::lane::Lane">Lane</a>) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a>>(<br> bounds: &<a class="struct" href="../../geom/bounds/struct.Bounds.html" title="struct geom::bounds::Bounds">Bounds</a>, <br> pts: <a class="struct" href="https://doc.rust-lang.org/nightly/std/collections/hash/set/struct.HashSet.html" title="struct std::collections::hash::set::HashSet">HashSet</a><<a class="struct" href="../../geom/pt/struct.HashablePt2D.html" title="struct geom::pt::HashablePt2D">HashablePt2D</a>>, <br> lanes: &<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/objects/lane/struct.Lane.html" title="struct map_model::objects::lane::Lane">Lane</a>>, <br> filter: F, <br> buffer: <a class="struct" href="../../geom/distance/struct.Distance.html" title="struct geom::distance::Distance">Distance</a>, <br> max_dist_away: <a class="struct" href="../../geom/distance/struct.Distance.html" title="struct geom::distance::Distance">Distance</a>, <br> timer: &mut <a class="struct" href="../../abstutil/time/struct.Timer.html" title="struct abstutil::time::Timer">Timer</a><'_><br>) -> <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><<a class="struct" href="../../geom/pt/struct.HashablePt2D.html" title="struct geom::pt::HashablePt2D">HashablePt2D</a>, <a class="struct" href="../../map_model/traversable/struct.Position.html" title="struct map_model::traversable::Position">Position</a>></pre><div class="docblock"><p>Snap points to an exact Position along the nearest lane. If the result doesn't contain a
|
<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/mod.rs.html#401-454" 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 class="fn" href="">match_points_to_lanes</a></span></h1><pre class="rust fn">fn match_points_to_lanes<F: <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.Fn.html" title="trait core::ops::function::Fn">Fn</a>(&<a class="struct" href="../../map_model/objects/lane/struct.Lane.html" title="struct map_model::objects::lane::Lane">Lane</a>) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a>>(<br> bounds: &<a class="struct" href="../../geom/bounds/struct.Bounds.html" title="struct geom::bounds::Bounds">Bounds</a>, <br> pts: <a class="struct" href="https://doc.rust-lang.org/nightly/std/collections/hash/set/struct.HashSet.html" title="struct std::collections::hash::set::HashSet">HashSet</a><<a class="struct" href="../../geom/pt/struct.HashablePt2D.html" title="struct geom::pt::HashablePt2D">HashablePt2D</a>>, <br> lanes: &<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/objects/lane/struct.Lane.html" title="struct map_model::objects::lane::Lane">Lane</a>>, <br> filter: F, <br> buffer: <a class="struct" href="../../geom/distance/struct.Distance.html" title="struct geom::distance::Distance">Distance</a>, <br> max_dist_away: <a class="struct" href="../../geom/distance/struct.Distance.html" title="struct geom::distance::Distance">Distance</a>, <br> timer: &mut <a class="struct" href="../../abstutil/time/struct.Timer.html" title="struct abstutil::time::Timer">Timer</a><'_><br>) -> <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><<a class="struct" href="../../geom/pt/struct.HashablePt2D.html" title="struct geom::pt::HashablePt2D">HashablePt2D</a>, <a class="struct" href="../../map_model/traversable/struct.Position.html" title="struct map_model::traversable::Position">Position</a>></pre><div class="docblock"><p>Snap points to an exact Position along the nearest lane. If the result doesn't contain a
|
||||||
requested point, then there was no matching lane close enough.</p>
|
requested point, then there was no matching lane close enough.</p>
|
||||||
</div></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>
|
</div></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,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 `make` mod in crate `map_model`."><meta name="keywords" content="rust, rustlang, rust-lang, make"><title>map_model::make - 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">
|
<!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 `make` mod in crate `map_model`."><meta name="keywords" content="rust, rustlang, rust-lang, make"><title>map_model::make - 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-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">☰</div><a href='../../map_model/index.html'><div class='logo-container rust-logo'><img src='../../rust-logo.png' alt='logo'></div></a><p class="location">Module make</p><div class="sidebar-elems"><div class="block items"><ul><li><a href="#modules">Modules</a></li><li><a href="#functions">Functions</a></li></ul></div><p class="location"><a href="../index.html">map_model</a></p><script>window.sidebarCurrent = {name: "make", 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><button type="button" class="help-button">?</button>
|
<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">☰</div><a href='../../map_model/index.html'><div class='logo-container rust-logo'><img src='../../rust-logo.png' alt='logo'></div></a><p class="location">Module make</p><div class="sidebar-elems"><div class="block items"><ul><li><a href="#modules">Modules</a></li><li><a href="#functions">Functions</a></li></ul></div><p class="location"><a href="../index.html">map_model</a></p><script>window.sidebarCurrent = {name: "make", 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><button type="button" class="help-button">?</button>
|
||||||
<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/mod.rs.html#1-452" title="goto source code">[src]</a></span><span class="in-band">Module <a href="../index.html">map_model</a>::<wbr><a class="mod" href="">make</a></span></h1><div class="docblock"><p>See <a href="https://a-b-street.github.io/docs/map/importing/index.html">https://a-b-street.github.io/docs/map/importing/index.html</a> for an overview. This module
|
<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/mod.rs.html#1-454" title="goto source code">[src]</a></span><span class="in-band">Module <a href="../index.html">map_model</a>::<wbr><a class="mod" href="">make</a></span></h1><div class="docblock"><p>See <a href="https://a-b-street.github.io/docs/map/importing/index.html">https://a-b-street.github.io/docs/map/importing/index.html</a> for an overview. This module
|
||||||
covers the RawMap->Map stage.</p>
|
covers the RawMap->Map stage.</p>
|
||||||
</div><h2 id="modules" class="section-header"><a href="#modules">Modules</a></h2>
|
</div><h2 id="modules" class="section-header"><a href="#modules">Modules</a></h2>
|
||||||
<table><tr class="module-item"><td><a class="mod" href="bridges/index.html" title="map_model::make::bridges mod">bridges</a></td><td class="docblock-short"></td></tr><tr class="module-item"><td><a class="mod" href="buildings/index.html" title="map_model::make::buildings mod">buildings</a></td><td class="docblock-short"></td></tr><tr class="module-item"><td><a class="mod" href="initial/index.html" title="map_model::make::initial mod">initial</a></td><td class="docblock-short"><p>Naming is confusing, but RawMap -> InitialMap -> Map. InitialMap is separate pretty much just
|
<table><tr class="module-item"><td><a class="mod" href="bridges/index.html" title="map_model::make::bridges mod">bridges</a></td><td class="docblock-short"></td></tr><tr class="module-item"><td><a class="mod" href="buildings/index.html" title="map_model::make::buildings mod">buildings</a></td><td class="docblock-short"></td></tr><tr class="module-item"><td><a class="mod" href="initial/index.html" title="map_model::make::initial mod">initial</a></td><td class="docblock-short"><p>Naming is confusing, but RawMap -> InitialMap -> Map. InitialMap is separate pretty much just
|
||||||
|
@ -29,7 +29,7 @@
|
|||||||
before the simulation resumes.</p>
|
before the simulation resumes.</p>
|
||||||
</div><h4 id="method.incremental_edit_traffic_signal" class="method"><code>pub fn <a href="#method.incremental_edit_traffic_signal" class="fnname">incremental_edit_traffic_signal</a>(&mut self, signal: <a class="struct" href="../map_model/objects/traffic_signals/struct.ControlTrafficSignal.html" title="struct map_model::objects::traffic_signals::ControlTrafficSignal">ControlTrafficSignal</a>)</code><a class="srclink" href="../src/map_model/edits/mod.rs.html#665-671" title="goto source code">[src]</a></h4><div class="docblock"><p>Since the player is in the middle of editing, the signal may not be valid. Don't go through
|
</div><h4 id="method.incremental_edit_traffic_signal" class="method"><code>pub fn <a href="#method.incremental_edit_traffic_signal" class="fnname">incremental_edit_traffic_signal</a>(&mut self, signal: <a class="struct" href="../map_model/objects/traffic_signals/struct.ControlTrafficSignal.html" title="struct map_model::objects::traffic_signals::ControlTrafficSignal">ControlTrafficSignal</a>)</code><a class="srclink" href="../src/map_model/edits/mod.rs.html#665-671" title="goto source code">[src]</a></h4><div class="docblock"><p>Since the player is in the middle of editing, the signal may not be valid. Don't go through
|
||||||
the entire apply_edits flow.</p>
|
the entire apply_edits flow.</p>
|
||||||
</div></div><h3 id="impl-1" class="impl"><code class="in-band">impl <a class="struct" href="../map_model/struct.Map.html" title="struct map_model::Map">Map</a></code><a href="#impl-1" class="anchor"></a><a class="srclink" href="../src/map_model/make/mod.rs.html#30-354" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.create_from_raw" class="method"><code>pub fn <a href="#method.create_from_raw" class="fnname">create_from_raw</a>(<br> raw: <a class="struct" href="../map_model/raw/struct.RawMap.html" title="struct map_model::raw::RawMap">RawMap</a>, <br> build_ch: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a>, <br> keep_bldg_tags: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a>, <br> timer: &mut <a class="struct" href="../abstutil/time/struct.Timer.html" title="struct abstutil::time::Timer">Timer</a><'_><br>) -> <a class="struct" href="../map_model/struct.Map.html" title="struct map_model::Map">Map</a></code><a class="srclink" href="../src/map_model/make/mod.rs.html#31-353" title="goto source code">[src]</a></h4></div><h3 id="impl-2" class="impl"><code class="in-band">impl <a class="struct" href="../map_model/struct.Map.html" title="struct map_model::Map">Map</a></code><a href="#impl-2" class="anchor"></a><a class="srclink" href="../src/map_model/make/mod.rs.html#356-395" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.import_minimal" class="method"><code>pub fn <a href="#method.import_minimal" class="fnname">import_minimal</a>(<br> name: <a class="struct" href="../abstio/abst_paths/struct.MapName.html" title="struct abstio::abst_paths::MapName">MapName</a>, <br> bounds: <a class="struct" href="../geom/bounds/struct.Bounds.html" title="struct geom::bounds::Bounds">Bounds</a>, <br> gps_bounds: <a class="struct" href="../geom/bounds/struct.GPSBounds.html" title="struct geom::bounds::GPSBounds">GPSBounds</a>, <br> intersections: <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/objects/intersection/struct.Intersection.html" title="struct map_model::objects::intersection::Intersection">Intersection</a>>, <br> roads: <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/objects/road/struct.Road.html" title="struct map_model::objects::road::Road">Road</a>>, <br> lanes: <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/objects/lane/struct.Lane.html" title="struct map_model::objects::lane::Lane">Lane</a>>, <br> turns: <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/objects/turn/struct.Turn.html" title="struct map_model::objects::turn::Turn">Turn</a>><br>) -> <a class="struct" href="../map_model/struct.Map.html" title="struct map_model::Map">Map</a></code><a class="srclink" href="../src/map_model/make/mod.rs.html#358-394" title="goto source code">[src]</a></h4><div class="docblock"><p>Use for creating a map directly from some external format, not from a RawMap.</p>
|
</div></div><h3 id="impl-1" class="impl"><code class="in-band">impl <a class="struct" href="../map_model/struct.Map.html" title="struct map_model::Map">Map</a></code><a href="#impl-1" class="anchor"></a><a class="srclink" href="../src/map_model/make/mod.rs.html#30-356" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.create_from_raw" class="method"><code>pub fn <a href="#method.create_from_raw" class="fnname">create_from_raw</a>(<br> raw: <a class="struct" href="../map_model/raw/struct.RawMap.html" title="struct map_model::raw::RawMap">RawMap</a>, <br> build_ch: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a>, <br> keep_bldg_tags: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a>, <br> timer: &mut <a class="struct" href="../abstutil/time/struct.Timer.html" title="struct abstutil::time::Timer">Timer</a><'_><br>) -> <a class="struct" href="../map_model/struct.Map.html" title="struct map_model::Map">Map</a></code><a class="srclink" href="../src/map_model/make/mod.rs.html#31-355" title="goto source code">[src]</a></h4></div><h3 id="impl-2" class="impl"><code class="in-band">impl <a class="struct" href="../map_model/struct.Map.html" title="struct map_model::Map">Map</a></code><a href="#impl-2" class="anchor"></a><a class="srclink" href="../src/map_model/make/mod.rs.html#358-397" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.import_minimal" class="method"><code>pub fn <a href="#method.import_minimal" class="fnname">import_minimal</a>(<br> name: <a class="struct" href="../abstio/abst_paths/struct.MapName.html" title="struct abstio::abst_paths::MapName">MapName</a>, <br> bounds: <a class="struct" href="../geom/bounds/struct.Bounds.html" title="struct geom::bounds::Bounds">Bounds</a>, <br> gps_bounds: <a class="struct" href="../geom/bounds/struct.GPSBounds.html" title="struct geom::bounds::GPSBounds">GPSBounds</a>, <br> intersections: <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/objects/intersection/struct.Intersection.html" title="struct map_model::objects::intersection::Intersection">Intersection</a>>, <br> roads: <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/objects/road/struct.Road.html" title="struct map_model::objects::road::Road">Road</a>>, <br> lanes: <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/objects/lane/struct.Lane.html" title="struct map_model::objects::lane::Lane">Lane</a>>, <br> turns: <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/objects/turn/struct.Turn.html" title="struct map_model::objects::turn::Turn">Turn</a>><br>) -> <a class="struct" href="../map_model/struct.Map.html" title="struct map_model::Map">Map</a></code><a class="srclink" href="../src/map_model/make/mod.rs.html#360-396" title="goto source code">[src]</a></h4><div class="docblock"><p>Use for creating a map directly from some external format, not from a RawMap.</p>
|
||||||
</div></div><h3 id="impl-3" class="impl"><code class="in-band">impl <a class="struct" href="../map_model/struct.Map.html" title="struct map_model::Map">Map</a></code><a href="#impl-3" class="anchor"></a><a class="srclink" href="../src/map_model/map.rs.html#47-728" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.new" class="method"><code>pub fn <a href="#method.new" class="fnname">new</a>(path: <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>, timer: &mut <a class="struct" href="../abstutil/time/struct.Timer.html" title="struct abstutil::time::Timer">Timer</a><'_>) -> <a class="struct" href="../map_model/struct.Map.html" title="struct map_model::Map">Map</a></code><a class="srclink" href="../src/map_model/map.rs.html#48-137" title="goto source code">[src]</a></h4><h4 id="method.map_loaded_directly" class="method"><code>pub fn <a href="#method.map_loaded_directly" class="fnname">map_loaded_directly</a>(&mut self)</code><a class="srclink" href="../src/map_model/map.rs.html#141-143" title="goto source code">[src]</a></h4><div class="docblock"><p>If you have to deserialize a <code>Map</code> directly, call this after. Prefer using <code>Map::new</code>
|
</div></div><h3 id="impl-3" class="impl"><code class="in-band">impl <a class="struct" href="../map_model/struct.Map.html" title="struct map_model::Map">Map</a></code><a href="#impl-3" class="anchor"></a><a class="srclink" href="../src/map_model/map.rs.html#47-728" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.new" class="method"><code>pub fn <a href="#method.new" class="fnname">new</a>(path: <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>, timer: &mut <a class="struct" href="../abstutil/time/struct.Timer.html" title="struct abstutil::time::Timer">Timer</a><'_>) -> <a class="struct" href="../map_model/struct.Map.html" title="struct map_model::Map">Map</a></code><a class="srclink" href="../src/map_model/map.rs.html#48-137" title="goto source code">[src]</a></h4><h4 id="method.map_loaded_directly" class="method"><code>pub fn <a href="#method.map_loaded_directly" class="fnname">map_loaded_directly</a>(&mut self)</code><a class="srclink" href="../src/map_model/map.rs.html#141-143" title="goto source code">[src]</a></h4><div class="docblock"><p>If you have to deserialize a <code>Map</code> directly, call this after. Prefer using <code>Map::new</code>
|
||||||
though.</p>
|
though.</p>
|
||||||
</div><h4 id="method.blank" class="method"><code>pub fn <a href="#method.blank" class="fnname">blank</a>() -> <a class="struct" href="../map_model/struct.Map.html" title="struct map_model::Map">Map</a></code><a class="srclink" href="../src/map_model/map.rs.html#146-182" title="goto source code">[src]</a></h4><div class="docblock"><p>Just for temporary std::mem::replace tricks.</p>
|
</div><h4 id="method.blank" class="method"><code>pub fn <a href="#method.blank" class="fnname">blank</a>() -> <a class="struct" href="../map_model/struct.Map.html" title="struct map_model::Map">Map</a></code><a class="srclink" href="../src/map_model/map.rs.html#146-182" title="goto source code">[src]</a></h4><div class="docblock"><p>Just for temporary std::mem::replace tricks.</p>
|
||||||
|
File diff suppressed because one or more lines are too long
@ -594,6 +594,54 @@
|
|||||||
<span id="591">591</span>
|
<span id="591">591</span>
|
||||||
<span id="592">592</span>
|
<span id="592">592</span>
|
||||||
<span id="593">593</span>
|
<span id="593">593</span>
|
||||||
|
<span id="594">594</span>
|
||||||
|
<span id="595">595</span>
|
||||||
|
<span id="596">596</span>
|
||||||
|
<span id="597">597</span>
|
||||||
|
<span id="598">598</span>
|
||||||
|
<span id="599">599</span>
|
||||||
|
<span id="600">600</span>
|
||||||
|
<span id="601">601</span>
|
||||||
|
<span id="602">602</span>
|
||||||
|
<span id="603">603</span>
|
||||||
|
<span id="604">604</span>
|
||||||
|
<span id="605">605</span>
|
||||||
|
<span id="606">606</span>
|
||||||
|
<span id="607">607</span>
|
||||||
|
<span id="608">608</span>
|
||||||
|
<span id="609">609</span>
|
||||||
|
<span id="610">610</span>
|
||||||
|
<span id="611">611</span>
|
||||||
|
<span id="612">612</span>
|
||||||
|
<span id="613">613</span>
|
||||||
|
<span id="614">614</span>
|
||||||
|
<span id="615">615</span>
|
||||||
|
<span id="616">616</span>
|
||||||
|
<span id="617">617</span>
|
||||||
|
<span id="618">618</span>
|
||||||
|
<span id="619">619</span>
|
||||||
|
<span id="620">620</span>
|
||||||
|
<span id="621">621</span>
|
||||||
|
<span id="622">622</span>
|
||||||
|
<span id="623">623</span>
|
||||||
|
<span id="624">624</span>
|
||||||
|
<span id="625">625</span>
|
||||||
|
<span id="626">626</span>
|
||||||
|
<span id="627">627</span>
|
||||||
|
<span id="628">628</span>
|
||||||
|
<span id="629">629</span>
|
||||||
|
<span id="630">630</span>
|
||||||
|
<span id="631">631</span>
|
||||||
|
<span id="632">632</span>
|
||||||
|
<span id="633">633</span>
|
||||||
|
<span id="634">634</span>
|
||||||
|
<span id="635">635</span>
|
||||||
|
<span id="636">636</span>
|
||||||
|
<span id="637">637</span>
|
||||||
|
<span id="638">638</span>
|
||||||
|
<span id="639">639</span>
|
||||||
|
<span id="640">640</span>
|
||||||
|
<span id="641">641</span>
|
||||||
</pre><div class="example-wrap"><pre class="rust ">
|
</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">BTreeSet</span>, <span class="ident">HashMap</span>};
|
<span class="kw">use</span> <span class="ident">std</span>::<span class="ident">collections</span>::{<span class="ident">BTreeSet</span>, <span class="ident">HashMap</span>};
|
||||||
|
|
||||||
@ -601,7 +649,7 @@
|
|||||||
|
|
||||||
<span class="kw">use</span> <span class="ident">abstio</span>::<span class="ident">MapName</span>;
|
<span class="kw">use</span> <span class="ident">abstio</span>::<span class="ident">MapName</span>;
|
||||||
<span class="kw">use</span> <span class="ident">abstutil</span>::{<span class="ident">retain_btreemap</span>, <span class="ident">Tags</span>, <span class="ident">Timer</span>};
|
<span class="kw">use</span> <span class="ident">abstutil</span>::{<span class="ident">retain_btreemap</span>, <span class="ident">Tags</span>, <span class="ident">Timer</span>};
|
||||||
<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">geom</span>::{<span class="ident">Distance</span>, <span class="ident">FindClosest</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">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">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">Direction</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>};
|
||||||
@ -680,7 +728,6 @@
|
|||||||
|
|
||||||
<span class="comment">// and cycleways</span>
|
<span class="comment">// and cycleways</span>
|
||||||
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">extra_footways</span> <span class="op">=</span> <span class="ident">ExtraShapes</span> { <span class="ident">shapes</span>: <span class="ident">Vec</span>::<span class="ident">new</span>() };
|
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">extra_footways</span> <span class="op">=</span> <span class="ident">ExtraShapes</span> { <span class="ident">shapes</span>: <span class="ident">Vec</span>::<span class="ident">new</span>() };
|
||||||
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">extra_service_roads</span> <span class="op">=</span> <span class="ident">ExtraShapes</span> { <span class="ident">shapes</span>: <span class="ident">Vec</span>::<span class="ident">new</span>() };
|
|
||||||
|
|
||||||
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">coastline_groups</span>: <span class="ident">Vec</span><span class="op"><</span>(<span class="ident">WayID</span>, <span class="ident">Vec</span><span class="op"><</span><span class="ident">Pt2D</span><span class="op">></span>)<span class="op">></span> <span class="op">=</span> <span class="ident">Vec</span>::<span class="ident">new</span>();
|
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">coastline_groups</span>: <span class="ident">Vec</span><span class="op"><</span>(<span class="ident">WayID</span>, <span class="ident">Vec</span><span class="op"><</span><span class="ident">Pt2D</span><span class="op">></span>)<span class="op">></span> <span class="op">=</span> <span class="ident">Vec</span>::<span class="ident">new</span>();
|
||||||
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">memorial_areas</span>: <span class="ident">Vec</span><span class="op"><</span><span class="ident">Polygon</span><span class="op">></span> <span class="op">=</span> <span class="ident">Vec</span>::<span class="ident">new</span>();
|
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">memorial_areas</span>: <span class="ident">Vec</span><span class="op"><</span><span class="ident">Polygon</span><span class="op">></span> <span class="op">=</span> <span class="ident">Vec</span>::<span class="ident">new</span>();
|
||||||
@ -712,11 +759,6 @@
|
|||||||
} <span class="kw">else</span> <span class="kw">if</span> <span class="ident">way</span>.<span class="ident">tags</span>.<span class="ident">is</span>(<span class="ident">osm</span>::<span class="ident">HIGHWAY</span>, <span class="string">"service"</span>) {
|
} <span class="kw">else</span> <span class="kw">if</span> <span class="ident">way</span>.<span class="ident">tags</span>.<span class="ident">is</span>(<span class="ident">osm</span>::<span class="ident">HIGHWAY</span>, <span class="string">"service"</span>) {
|
||||||
<span class="comment">// If we got here, is_road didn't interpret it as a normal road</span>
|
<span class="comment">// If we got here, is_road didn't interpret it as a normal road</span>
|
||||||
<span class="ident">map</span>.<span class="ident">parking_aisles</span>.<span class="ident">push</span>((<span class="ident">id</span>, <span class="ident">way</span>.<span class="ident">pts</span>.<span class="ident">clone</span>()));
|
<span class="ident">map</span>.<span class="ident">parking_aisles</span>.<span class="ident">push</span>((<span class="ident">id</span>, <span class="ident">way</span>.<span class="ident">pts</span>.<span class="ident">clone</span>()));
|
||||||
|
|
||||||
<span class="ident">extra_service_roads</span>.<span class="ident">shapes</span>.<span class="ident">push</span>(<span class="ident">ExtraShape</span> {
|
|
||||||
<span class="ident">points</span>: <span class="ident">map</span>.<span class="ident">gps_bounds</span>.<span class="ident">convert_back</span>(<span class="kw-2">&</span><span class="ident">way</span>.<span class="ident">pts</span>),
|
|
||||||
<span class="ident">attributes</span>: <span class="ident">way</span>.<span class="ident">tags</span>.<span class="ident">inner</span>().<span class="ident">clone</span>(),
|
|
||||||
});
|
|
||||||
} <span class="kw">else</span> <span class="kw">if</span> <span class="ident">way</span>
|
} <span class="kw">else</span> <span class="kw">if</span> <span class="ident">way</span>
|
||||||
.<span class="ident">tags</span>
|
.<span class="ident">tags</span>
|
||||||
.<span class="ident">is_any</span>(<span class="ident">osm</span>::<span class="ident">HIGHWAY</span>, <span class="macro">vec</span><span class="macro">!</span>[<span class="string">"cycleway"</span>, <span class="string">"footway"</span>, <span class="string">"path"</span>])
|
.<span class="ident">is_any</span>(<span class="ident">osm</span>::<span class="ident">HIGHWAY</span>, <span class="macro">vec</span><span class="macro">!</span>[<span class="string">"cycleway"</span>, <span class="string">"footway"</span>, <span class="string">"path"</span>])
|
||||||
@ -768,15 +810,11 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
<span class="comment">// Since we're not actively working on using footways and service roads, stop generating except</span>
|
<span class="comment">// Since we're not actively working on using footways, stop generating except in Seattle. In</span>
|
||||||
<span class="comment">// in Seattle. In the future, this should only happen for the largest or canonical map per</span>
|
<span class="comment">// the future, this should only happen for the largest or canonical map per city, but there's</span>
|
||||||
<span class="comment">// city, but there's no way to express that right now.</span>
|
<span class="comment">// no way to express that right now.</span>
|
||||||
<span class="kw">if</span> <span class="ident">map</span>.<span class="ident">name</span> <span class="op">=</span><span class="op">=</span> <span class="ident">MapName</span>::<span class="ident">seattle</span>(<span class="string">"huge_seattle"</span>) {
|
<span class="kw">if</span> <span class="ident">map</span>.<span class="ident">name</span> <span class="op">=</span><span class="op">=</span> <span class="ident">MapName</span>::<span class="ident">seattle</span>(<span class="string">"huge_seattle"</span>) {
|
||||||
<span class="ident">abstio</span>::<span class="ident">write_binary</span>(<span class="ident">map</span>.<span class="ident">name</span>.<span class="ident">city</span>.<span class="ident">input_path</span>(<span class="string">"footways.bin"</span>), <span class="kw-2">&</span><span class="ident">extra_footways</span>);
|
<span class="ident">abstio</span>::<span class="ident">write_binary</span>(<span class="ident">map</span>.<span class="ident">name</span>.<span class="ident">city</span>.<span class="ident">input_path</span>(<span class="string">"footways.bin"</span>), <span class="kw-2">&</span><span class="ident">extra_footways</span>);
|
||||||
<span class="ident">abstio</span>::<span class="ident">write_binary</span>(
|
|
||||||
<span class="ident">map</span>.<span class="ident">name</span>.<span class="ident">city</span>.<span class="ident">input_path</span>(<span class="string">"service_roads.bin"</span>),
|
|
||||||
<span class="kw-2">&</span><span class="ident">extra_service_roads</span>,
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
<span class="kw">let</span> <span class="ident">boundary</span> <span class="op">=</span> <span class="ident">map</span>.<span class="ident">boundary_polygon</span>.<span class="ident">clone</span>().<span class="ident">into_ring</span>();
|
<span class="kw">let</span> <span class="ident">boundary</span> <span class="op">=</span> <span class="ident">map</span>.<span class="ident">boundary_polygon</span>.<span class="ident">clone</span>().<span class="ident">into_ring</span>();
|
||||||
@ -981,6 +1019,10 @@
|
|||||||
<span class="kw">_</span> <span class="op">=</span><span class="op">></span> <span class="number">0</span>,
|
<span class="kw">_</span> <span class="op">=</span><span class="op">></span> <span class="number">0</span>,
|
||||||
});
|
});
|
||||||
|
|
||||||
|
<span class="ident">timer</span>.<span class="ident">start</span>(<span class="string">"find service roads crossing parking lots"</span>);
|
||||||
|
<span class="ident">find_parking_aisles</span>(<span class="ident">map</span>, <span class="kw-2">&</span><span class="kw-2">mut</span> <span class="ident">out</span>.<span class="ident">roads</span>);
|
||||||
|
<span class="ident">timer</span>.<span class="ident">stop</span>(<span class="string">"find service roads crossing parking lots"</span>);
|
||||||
|
|
||||||
<span class="ident">out</span>
|
<span class="ident">out</span>
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1060,13 +1102,10 @@
|
|||||||
<span class="kw">return</span> <span class="bool-val">false</span>;
|
<span class="kw">return</span> <span class="bool-val">false</span>;
|
||||||
}
|
}
|
||||||
|
|
||||||
<span class="comment">// Service roads can represent lots of things, most of which we don't want to keep yet. What's</span>
|
<span class="comment">// Import most service roads. Always ignore driveways, and always reserve parking_aisles for</span>
|
||||||
<span class="comment">// allowed here is just based on what's been encountered so far in Seattle and Kraków.</span>
|
<span class="comment">// parking lots.</span>
|
||||||
<span class="kw">if</span> <span class="ident">highway</span> <span class="op">=</span><span class="op">=</span> <span class="string">"service"</span> {
|
<span class="kw">if</span> <span class="ident">highway</span> <span class="op">=</span><span class="op">=</span> <span class="string">"service"</span> <span class="op">&&</span> <span class="ident">tags</span>.<span class="ident">is_any</span>(<span class="string">"service"</span>, <span class="macro">vec</span><span class="macro">!</span>[<span class="string">"driveway"</span>, <span class="string">"parking_aisle"</span>]) {
|
||||||
<span class="kw">let</span> <span class="ident">for_buses</span> <span class="op">=</span> <span class="ident">tags</span>.<span class="ident">is_any</span>(<span class="string">"psv"</span>, <span class="macro">vec</span><span class="macro">!</span>[<span class="string">"bus"</span>, <span class="string">"yes"</span>]) <span class="op">|</span><span class="op">|</span> <span class="ident">tags</span>.<span class="ident">is</span>(<span class="string">"bus"</span>, <span class="string">"yes"</span>);
|
<span class="kw">return</span> <span class="bool-val">false</span>;
|
||||||
<span class="kw">if</span> <span class="op">!</span><span class="ident">for_buses</span> <span class="op">&&</span> <span class="op">!</span><span class="ident">tags</span>.<span class="ident">is</span>(<span class="string">"service"</span>, <span class="string">"alley"</span>) {
|
|
||||||
<span class="kw">return</span> <span class="bool-val">false</span>;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
<span class="comment">// Not sure what this means, found in Seoul.</span>
|
<span class="comment">// Not sure what this means, found in Seoul.</span>
|
||||||
@ -1188,5 +1227,62 @@
|
|||||||
|
|
||||||
<span class="prelude-val">None</span>
|
<span class="prelude-val">None</span>
|
||||||
}
|
}
|
||||||
|
|
||||||
|
<span class="comment">// Look for any service roads that collide with parking lots, and treat them as parking aisles</span>
|
||||||
|
<span class="comment">// instead.</span>
|
||||||
|
<span class="kw">fn</span> <span class="ident">find_parking_aisles</span>(<span class="ident">map</span>: <span class="kw-2">&</span><span class="kw-2">mut</span> <span class="ident">RawMap</span>, <span class="ident">roads</span>: <span class="kw-2">&</span><span class="kw-2">mut</span> <span class="ident">Vec</span><span class="op"><</span>(<span class="ident">WayID</span>, <span class="ident">RawRoad</span>)<span class="op">></span>) {
|
||||||
|
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">closest</span>: <span class="ident">FindClosest</span><span class="op"><</span><span class="ident">usize</span><span class="op">></span> <span class="op">=</span> <span class="ident">FindClosest</span>::<span class="ident">new</span>(<span class="kw-2">&</span><span class="ident">map</span>.<span class="ident">gps_bounds</span>.<span class="ident">to_bounds</span>());
|
||||||
|
<span class="kw">for</span> (<span class="ident">idx</span>, <span class="ident">lot</span>) <span class="kw">in</span> <span class="ident">map</span>.<span class="ident">parking_lots</span>.<span class="ident">iter</span>().<span class="ident">enumerate</span>() {
|
||||||
|
<span class="ident">closest</span>.<span class="ident">add</span>(<span class="ident">idx</span>, <span class="ident">lot</span>.<span class="ident">polygon</span>.<span class="ident">points</span>());
|
||||||
|
}
|
||||||
|
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">keep_roads</span> <span class="op">=</span> <span class="ident">Vec</span>::<span class="ident">new</span>();
|
||||||
|
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">parking_aisles</span> <span class="op">=</span> <span class="ident">Vec</span>::<span class="ident">new</span>();
|
||||||
|
<span class="kw">for</span> (<span class="ident">id</span>, <span class="ident">road</span>) <span class="kw">in</span> <span class="ident">roads</span>.<span class="ident">drain</span>(..) {
|
||||||
|
<span class="kw">if</span> <span class="op">!</span><span class="ident">road</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">"service"</span>) {
|
||||||
|
<span class="ident">keep_roads</span>.<span class="ident">push</span>((<span class="ident">id</span>, <span class="ident">road</span>));
|
||||||
|
<span class="kw">continue</span>;
|
||||||
|
}
|
||||||
|
<span class="comment">// TODO This code is repeated later in make/parking_lots.rs, but oh well.</span>
|
||||||
|
|
||||||
|
<span class="comment">// Use the center of all the aisle points to match it to lots</span>
|
||||||
|
<span class="kw">let</span> <span class="ident">candidates</span>: <span class="ident">Vec</span><span class="op"><</span><span class="ident">usize</span><span class="op">></span> <span class="op">=</span> <span class="ident">closest</span>
|
||||||
|
.<span class="ident">all_close_pts</span>(<span class="ident">Pt2D</span>::<span class="ident">center</span>(<span class="kw-2">&</span><span class="ident">road</span>.<span class="ident">center_points</span>), <span class="ident">Distance</span>::<span class="ident">meters</span>(<span class="number">500.0</span>))
|
||||||
|
.<span class="ident">into_iter</span>()
|
||||||
|
.<span class="ident">map</span>(<span class="op">|</span>(<span class="ident">idx</span>, <span class="kw">_</span>, <span class="kw">_</span>)<span class="op">|</span> <span class="ident">idx</span>)
|
||||||
|
.<span class="ident">collect</span>();
|
||||||
|
<span class="kw">if</span> <span class="ident">service_road_crosses_parking_lot</span>(<span class="ident">map</span>, <span class="kw-2">&</span><span class="ident">road</span>, <span class="ident">candidates</span>) {
|
||||||
|
<span class="ident">parking_aisles</span>.<span class="ident">push</span>((<span class="ident">id</span>, <span class="ident">road</span>.<span class="ident">center_points</span>.<span class="ident">clone</span>()));
|
||||||
|
} <span class="kw">else</span> {
|
||||||
|
<span class="ident">keep_roads</span>.<span class="ident">push</span>((<span class="ident">id</span>, <span class="ident">road</span>));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
<span class="ident">roads</span>.<span class="ident">extend</span>(<span class="ident">keep_roads</span>);
|
||||||
|
<span class="kw">for</span> (<span class="ident">id</span>, <span class="ident">pts</span>) <span class="kw">in</span> <span class="ident">parking_aisles</span> {
|
||||||
|
<span class="ident">map</span>.<span class="ident">parking_aisles</span>.<span class="ident">push</span>((<span class="ident">id</span>, <span class="ident">pts</span>));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
<span class="kw">fn</span> <span class="ident">service_road_crosses_parking_lot</span>(<span class="ident">map</span>: <span class="kw-2">&</span><span class="ident">RawMap</span>, <span class="ident">road</span>: <span class="kw-2">&</span><span class="ident">RawRoad</span>, <span class="ident">candidates</span>: <span class="ident">Vec</span><span class="op"><</span><span class="ident">usize</span><span class="op">></span>) <span class="op">-</span><span class="op">></span> <span class="ident">bool</span> {
|
||||||
|
<span class="kw">match</span> <span class="ident">Ring</span>::<span class="ident">split_points</span>(<span class="kw-2">&</span><span class="ident">road</span>.<span class="ident">center_points</span>) {
|
||||||
|
<span class="prelude-val">Ok</span>((<span class="ident">polylines</span>, <span class="ident">rings</span>)) <span class="op">=</span><span class="op">></span> {
|
||||||
|
<span class="kw">for</span> <span class="ident">pl</span> <span class="kw">in</span> <span class="ident">polylines</span> {
|
||||||
|
<span class="kw">for</span> <span class="ident">idx</span> <span class="kw">in</span> <span class="kw-2">&</span><span class="ident">candidates</span> {
|
||||||
|
<span class="kw">if</span> <span class="ident">map</span>.<span class="ident">parking_lots</span>[<span class="kw-2">*</span><span class="ident">idx</span>].<span class="ident">polygon</span>.<span class="ident">clip_polyline</span>(<span class="kw-2">&</span><span class="ident">pl</span>).<span class="ident">is_some</span>() {
|
||||||
|
<span class="kw">return</span> <span class="bool-val">true</span>;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
<span class="kw">for</span> <span class="ident">ring</span> <span class="kw">in</span> <span class="ident">rings</span> {
|
||||||
|
<span class="kw">for</span> <span class="ident">idx</span> <span class="kw">in</span> <span class="kw-2">&</span><span class="ident">candidates</span> {
|
||||||
|
<span class="kw">if</span> <span class="ident">map</span>.<span class="ident">parking_lots</span>[<span class="kw-2">*</span><span class="ident">idx</span>].<span class="ident">polygon</span>.<span class="ident">clip_ring</span>(<span class="kw-2">&</span><span class="ident">ring</span>).<span class="ident">is_some</span>() {
|
||||||
|
<span class="kw">return</span> <span class="bool-val">true</span>;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
<span class="prelude-val">Err</span>(<span class="kw">_</span>) <span class="op">=</span><span class="op">></span> {}
|
||||||
|
}
|
||||||
|
<span class="bool-val">false</span>
|
||||||
|
}
|
||||||
</pre></div>
|
</pre></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 src="../../source-script.js"></script><script src="../../source-files.js"></script><script defer src="../../search-index.js"></script></body></html>
|
</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 src="../../source-script.js"></script><script src="../../source-files.js"></script><script defer src="../../search-index.js"></script></body></html>
|
@ -122,7 +122,7 @@
|
|||||||
<span class="doccomment">/// The output of `rustdoc -V`</span>
|
<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.50.0 (cb75ad5db 2021-02-10)"</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.50.0 (cb75ad5db 2021-02-10)"</span>;
|
||||||
<span class="doccomment">/// The built-time in RFC2822, UTC</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">"Sun, 21 Feb 2021 19:49:37 +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, 22 Feb 2021 02:37:36 +0000"</span>;
|
||||||
<span class="doccomment">/// The target architecture, given by `cfg!(target_arch)`.</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="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>
|
<span class="doccomment">/// The endianness, given by `cfg!(target_endian)`.</span>
|
||||||
|
@ -155,7 +155,7 @@
|
|||||||
|
|
||||||
<span class="comment">// TODO Remove after improving this heuristic.</span>
|
<span class="comment">// TODO Remove after improving this heuristic.</span>
|
||||||
<span class="kw">if</span> <span class="ident">connects_dual_carriageway</span>(<span class="ident">map</span>, <span class="ident">r</span>) {
|
<span class="kw">if</span> <span class="ident">connects_dual_carriageway</span>(<span class="ident">map</span>, <span class="ident">r</span>) {
|
||||||
<span class="macro">info</span><span class="macro">!</span>(<span class="string">"{} connects dual carriageways"</span>, <span class="ident">r</span>);
|
<span class="macro">debug</span><span class="macro">!</span>(<span class="string">"{} connects dual carriageways"</span>, <span class="ident">r</span>);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -453,6 +453,8 @@
|
|||||||
<span id="450">450</span>
|
<span id="450">450</span>
|
||||||
<span id="451">451</span>
|
<span id="451">451</span>
|
||||||
<span id="452">452</span>
|
<span id="452">452</span>
|
||||||
|
<span id="453">453</span>
|
||||||
|
<span id="454">454</span>
|
||||||
</pre><div class="example-wrap"><pre class="rust ">
|
</pre><div class="example-wrap"><pre class="rust ">
|
||||||
<span class="doccomment">//! See <https://a-b-street.github.io/docs/map/importing/index.html> for an overview. This module</span>
|
<span class="doccomment">//! See <https://a-b-street.github.io/docs/map/importing/index.html> for an overview. This module</span>
|
||||||
<span class="doccomment">//! covers the RawMap->Map stage.</span>
|
<span class="doccomment">//! covers the RawMap->Map stage.</span>
|
||||||
@ -493,7 +495,9 @@
|
|||||||
<span class="comment">// Better to defer this and see RawMaps with more debug info in map_editor</span>
|
<span class="comment">// Better to defer this and see RawMaps with more debug info in map_editor</span>
|
||||||
<span class="ident">remove_disconnected</span>::<span class="ident">remove_disconnected_roads</span>(<span class="kw-2">&</span><span class="kw-2">mut</span> <span class="ident">raw</span>, <span class="ident">timer</span>);
|
<span class="ident">remove_disconnected</span>::<span class="ident">remove_disconnected_roads</span>(<span class="kw-2">&</span><span class="kw-2">mut</span> <span class="ident">raw</span>, <span class="ident">timer</span>);
|
||||||
|
|
||||||
|
<span class="ident">timer</span>.<span class="ident">start</span>(<span class="string">"merging short roads"</span>);
|
||||||
<span class="kw">let</span> <span class="ident">merged_intersections</span> <span class="op">=</span> <span class="ident">merge_intersections</span>::<span class="ident">merge_short_roads</span>(<span class="kw-2">&</span><span class="kw-2">mut</span> <span class="ident">raw</span>);
|
<span class="kw">let</span> <span class="ident">merged_intersections</span> <span class="op">=</span> <span class="ident">merge_intersections</span>::<span class="ident">merge_short_roads</span>(<span class="kw-2">&</span><span class="kw-2">mut</span> <span class="ident">raw</span>);
|
||||||
|
<span class="ident">timer</span>.<span class="ident">stop</span>(<span class="string">"merging short roads"</span>);
|
||||||
|
|
||||||
<span class="ident">timer</span>.<span class="ident">start</span>(<span class="string">"raw_map to InitialMap"</span>);
|
<span class="ident">timer</span>.<span class="ident">start</span>(<span class="string">"raw_map to InitialMap"</span>);
|
||||||
<span class="kw">let</span> <span class="ident">gps_bounds</span> <span class="op">=</span> <span class="ident">raw</span>.<span class="ident">gps_bounds</span>.<span class="ident">clone</span>();
|
<span class="kw">let</span> <span class="ident">gps_bounds</span> <span class="op">=</span> <span class="ident">raw</span>.<span class="ident">gps_bounds</span>.<span class="ident">clone</span>();
|
||||||
@ -566,7 +570,7 @@
|
|||||||
.<span class="ident">turn_restrictions</span>
|
.<span class="ident">turn_restrictions</span>
|
||||||
.<span class="ident">iter</span>()
|
.<span class="ident">iter</span>()
|
||||||
.<span class="ident">filter_map</span>(<span class="op">|</span>(<span class="ident">rt</span>, <span class="ident">to</span>)<span class="op">|</span> {
|
.<span class="ident">filter_map</span>(<span class="op">|</span>(<span class="ident">rt</span>, <span class="ident">to</span>)<span class="op">|</span> {
|
||||||
<span class="comment">// Missing roads are filtered (like service roads) or clipped out</span>
|
<span class="comment">// Missing roads are filtered (like some service roads) or clipped out</span>
|
||||||
<span class="ident">road_id_mapping</span>.<span class="ident">get</span>(<span class="ident">to</span>).<span class="ident">map</span>(<span class="op">|</span><span class="ident">to</span><span class="op">|</span> (<span class="kw-2">*</span><span class="ident">rt</span>, <span class="kw-2">*</span><span class="ident">to</span>))
|
<span class="ident">road_id_mapping</span>.<span class="ident">get</span>(<span class="ident">to</span>).<span class="ident">map</span>(<span class="op">|</span><span class="ident">to</span><span class="op">|</span> (<span class="kw-2">*</span><span class="ident">rt</span>, <span class="kw-2">*</span><span class="ident">to</span>))
|
||||||
})
|
})
|
||||||
.<span class="ident">collect</span>(),
|
.<span class="ident">collect</span>(),
|
||||||
|
Loading…
Reference in New Issue
Block a user