<!DOCTYPE html><htmllang="en"><head><metacharset="utf-8"><metaname="viewport"content="width=device-width, initial-scale=1.0"><metaname="generator"content="rustdoc"><metaname="description"content="Everything related to pathfinding through a map for different types of agents."><metaname="keywords"content="rust, rustlang, rust-lang, pathfind"><title>map_model::pathfind - Rust</title><linkrel="stylesheet"type="text/css"href="../../normalize.css"><linkrel="stylesheet"type="text/css"href="../../rustdoc.css"id="mainThemeStyle"><linkrel="stylesheet"type="text/css"href="../../light.css"id="themeStyle"><linkrel="stylesheet"type="text/css"href="../../dark.css"disabled><linkrel="stylesheet"type="text/css"href="../../ayu.css"disabled><scriptid="default-settings"></script><scriptsrc="../../storage.js"></script><scriptsrc="../../crates.js"></script><noscript><linkrel="stylesheet"href="../../noscript.css"></noscript><linkrel="alternate icon"type="image/png"href="../../favicon-16x16.png"><linkrel="alternate icon"type="image/png"href="../../favicon-32x32.png"><linkrel="icon"type="image/svg+xml"href="../../favicon.svg"><styletype="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><bodyclass="rustdoc mod"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><navclass="sidebar"><divclass="sidebar-menu"role="button">☰</div><ahref='../../map_model/index.html'><divclass='logo-container rust-logo'><imgsrc='../../rust-logo.png'alt='logo'></div></a><h2class="location">Module pathfind</h2><divclass="sidebar-elems"><divclass="block items"><ul><li><ahref="#modules">Modules</a></li><li><ahref="#structs">Structs</a></li><li><ahref="#enums">Enums</a></li><li><ahref="#functions">Functions</a></li></ul></div><divid="sidebar-vars"data-name="pathfind"data-ty="mod"data-relpath="./"></div><scriptdefersrc="./sidebar-items.js"></script></div></nav><divclass="theme-picker"><buttonid="theme-picker"aria-label="Pick another theme!"aria-haspopup="menu"title="themes"><imgwidth="18"height="18"alt="Pick another theme!"src="../../brush.svg"></button><divid="theme-choices"role="menu"></div></div><navclass="sub"><formclass="search-form"><divclass="search-container"><div><selectid="crate-search"><optionvalue="All crates">All crates</option></select><inputclass="search-input"name="search"disabledautocomplete="off"spellcheck="false"placeholder="Click or press ‘S’ to search, ‘?’ for more options…"type="search"></div><buttontype="button"id="help-button"title="help">?</button><aid="settings-menu"href="../../settings.html"title="settings"><imgwidth="18"height="18"alt="Change settings"src="../../wheel.svg"></a></div></form></nav><sectionid="main"class="content"><h1class="fqn"><spanclass="in-band">Module <ahref="../index.html">map_model</a>::<wbr><aclass="mod"href="#">pathfind</a><buttonid="copy-path"onclick="copy_path(this)"title="Copy item path to clipboard"><imgsrc="../../clipboard.svg"width="19"height="18"alt="Copy item path"></button></span><spanclass="out-of-band"><spanid="render-detail"><aid="toggle-all-docs"href="javascript:void(0)"title="collapse all docs">[<spanclass="inner">−</span>]</a></span><aclass="srclink"href="../../src/map_model/pathfind/mod.rs.html#1-227"title="goto source code">[src]</a></span></h1><detailsclass="rustdoc-toggle top-doc"open><summaryclass="hideme"><span>Expand description</span></summary><divclass="docblock"><p>Everything related to pathfinding through a map for different types of agents.</p>
<divclass="item-table"><divclass="item-row"><divclass="item-left import-item"><code>pub use self::engine::<aclass="enum"href="engine/enum.CreateEngine.html"title="enum map_model::pathfind::engine::CreateEngine">CreateEngine</a>;</code></div><divclass="item-right docblock-short"></div></div><divclass="item-row"><divclass="item-left import-item"><code>pub use self::pathfinder::<aclass="struct"href="pathfinder/struct.Pathfinder.html"title="struct map_model::pathfind::pathfinder::Pathfinder">Pathfinder</a>;</code></div><divclass="item-right docblock-short"></div></div><divclass="item-row"><divclass="item-left import-item"><code>pub use self::v1::<aclass="struct"href="v1/struct.Path.html"title="struct map_model::pathfind::v1::Path">Path</a>;</code></div><divclass="item-right docblock-short"></div></div><divclass="item-row"><divclass="item-left import-item"><code>pub use self::v1::<aclass="struct"href="v1/struct.PathRequest.html"title="struct map_model::pathfind::v1::PathRequest">PathRequest</a>;</code></div><divclass="item-right docblock-short"></div></div><divclass="item-row"><divclass="item-left import-item"><code>pub use self::v1::<aclass="enum"href="v1/enum.PathStep.html"title="enum map_model::pathfind::v1::PathStep">PathStep</a>;</code></div><divclass="item-right docblock-short"></div></div><divclass="item-row"><divclass="item-left import-item"><code>pub use self::v2::<aclass="enum"href="v2/enum.PathStepV2.html"title="enum map_model::pathfind::v2::PathStepV2">PathStepV2</a>;</code></div><divclass="item-right docblock-short"></div></div><divclass="item-row"><divclass="item-left import-item"><code>pub use self::v2::<aclass="struct"href="v2/struct.PathV2.html"title="struct map_model::pathfind::v2::PathV2">PathV2</a>;</code></div><divclass="item-right docblock-short"></div></div><divclass="item-row"><divclass="item-left import-item"><code>pub use self::vehicles::<aclass="fn"href="../connectivity/fn.vehicle_cost.html"title="fn map_model::connectivity::vehicle_cost">vehicle_cost</a>;</code></div><divclass="item-right docblock-short"></div></div><divclass="item-row"><divclass="item-left import-item"><code>pub use self::walking::<aclass="enum"href="../connectivity/enum.WalkingNode.html"title="enum map_model::connectivity::WalkingNode">WalkingNode</a>;</code></div><divclass="item-right docblock-short"></div></div></div><h2id="modules"class="section-header"><ahref="#modules">Modules</a></h2>
<divclass="item-table"><divclass="item-row"><divclass="item-left module-item"><aclass="mod"href="engine/index.html"title="map_model::pathfind::engine mod">engine</a></div><divclass="item-right docblock-short"></div></div><divclass="item-row"><divclass="item-left module-item"><aclass="mod"href="node_map/index.html"title="map_model::pathfind::node_map mod">node_map</a></div><divclass="item-right docblock-short"><p>Some helpers for working with fast_paths.</p>
</div></div><divclass="item-row"><divclass="item-left module-item"><aclass="mod"href="pathfinder/index.html"title="map_model::pathfind::pathfinder mod">pathfinder</a></div><divclass="item-right docblock-short"></div></div><divclass="item-row"><divclass="item-left module-item"><aclass="mod"href="uber_turns/index.html"title="map_model::pathfind::uber_turns mod">uber_turns</a></div><divclass="item-right docblock-short"><p>To deal with complicated intersections and short roads in OSM, cluster intersections close
</div></div><divclass="item-row"><divclass="item-left module-item"><aclass="mod"href="v1/index.html"title="map_model::pathfind::v1 mod">v1</a></div><divclass="item-right docblock-short"></div></div><divclass="item-row"><divclass="item-left module-item"><aclass="mod"href="v2/index.html"title="map_model::pathfind::v2 mod">v2</a></div><divclass="item-right docblock-short"><p>Structures related to the new road-based pathfinding
</div></div><divclass="item-row"><divclass="item-left module-item"><aclass="mod"href="vehicles/index.html"title="map_model::pathfind::vehicles mod">vehicles</a></div><divclass="item-right docblock-short"><p>Pathfinding for cars, bikes, buses, and trains using contraction hierarchies</p>
</div></div><divclass="item-row"><divclass="item-left module-item"><aclass="mod"href="walking/index.html"title="map_model::pathfind::walking mod">walking</a></div><divclass="item-right docblock-short"><p>Pathfinding for pedestrians, as well as figuring out if somebody should use public transit.</p>
<divclass="item-table"><divclass="item-row"><divclass="item-left module-item"><aclass="struct"href="struct.RoutingParams.html"title="map_model::pathfind::RoutingParams struct">RoutingParams</a></div><divclass="item-right docblock-short"><p>Tuneable parameters for all types of routing.</p>
<divclass="item-table"><divclass="item-row"><divclass="item-left module-item"><aclass="enum"href="enum.PathConstraints.html"title="map_model::pathfind::PathConstraints enum">PathConstraints</a></div><divclass="item-right docblock-short"><p>Who’s asking for a path?</p>
<divclass="item-table"><divclass="item-row"><divclass="item-left module-item"><aclass="fn"href="fn.round.html"title="map_model::pathfind::round fn">round</a></div><divclass="item-right docblock-short"></div></div><divclass="item-row"><divclass="item-left module-item"><aclass="fn"href="fn.unround.html"title="map_model::pathfind::unround fn">unround</a></div><divclass="item-right docblock-short"></div></div><divclass="item-row"><divclass="item-left module-item"><aclass="fn"href="fn.zone_cost.html"title="map_model::pathfind::zone_cost fn">zone_cost</a></div><divclass="item-right docblock-short"><p>Heavily penalize crossing into an access-restricted zone that doesn’t allow this mode.</p>