Skip to content

Commit

Permalink
oneway
Browse files Browse the repository at this point in the history
  • Loading branch information
martinhamel committed Nov 16, 2024
1 parent 24fd213 commit 379a06d
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/utils/h.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,8 @@ impl H for HMoyen {
// if the target is the source we are reverse of the edge
if target == edge.source
&& edge.tags.get("oneway") == Some(&"yes".to_string())
&& (!edge.tags.get("cycleway:both").is_some()
|| edge.tags.get("cycleway:both") == Some(&"no".to_string()))
&& (!edge.tags.get("cycleway:left").is_some()
|| edge.tags.get("cycleway:left") == Some(&"no".to_string()))
&& edge.tags.get("oneway:bicycle") != Some(&"no".to_string())
&& edge.tags.get("cycleway:left:oneway") != Some(&"no".to_string())
{
return 1. / 0.05;
}
Expand Down

0 comments on commit 379a06d

Please sign in to comment.