Don't draw paths to places >15 mins away. #393

This commit is contained in:
Dustin Carlino 2020-12-24 16:38:40 -08:00
parent 248b922810
commit cff51a46ea

View File

@ -93,6 +93,11 @@ impl Isochrone {
}
pub fn path_to(&self, map: &Map, to: BuildingID) -> Option<Path> {
// Don't draw paths to places far away
if !self.time_to_reach_building.contains_key(&to) {
return None;
}
let req = PathRequest::between_buildings(
map,
self.start,