Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Include waterway:lock_gate in (pedestrian) routing #1177

Closed
koebi opened this issue May 30, 2022 · 4 comments · Fixed by #1180
Closed

Include waterway:lock_gate in (pedestrian) routing #1177

koebi opened this issue May 30, 2022 · 4 comments · Fixed by #1180
Assignees

Comments

@koebi
Copy link
Collaborator

koebi commented May 30, 2022

This was reported in the ask-forum.

Here's what I did

Request this route


Here's what I got

The following route going around, although the lock is tagged with foot:designated
Screenshot 2022-05-30 at 14-59-42 ORS Maps


Here's what I was expecting

The short route, since the lock is tagged as accessible by foot.


Here's what I think could be improved

According to @aoles this case might have to be added to handleNonHighways similar to some of the other scenarios such as ferries or public transport platforms.

If done so, it should also be added to the backend documentation.

@koebi koebi self-assigned this May 30, 2022
@aoles
Copy link
Member

aoles commented May 30, 2022

For the record: the problem with this particular example is that both way segments 82644748 and 677222821 which constitute the lock gate are not tagged as highway. In order to consider such ways for routing some additional logic based on OSM tags needs to be added to handleNonHighways, probably sth along the lines:

        if (way.hasTag("waterway" = "lock_gate")) {
            String footTag = way.getTag(OSMTags.Keys.FOOT);
            if (intendedValues.contains(footTag))
                acceptPotentially = EncodingManager.Access.WAY;
        }

Fun fact: there is only a bunch of water locks open to pedestrians worldwide. Note that in contrary to the above some of them are tagged as highways.

@koebi
Copy link
Collaborator Author

koebi commented Jun 1, 2022

ToDo here:

  • check how routing behaves on waterway=lock_gate if tagged w/ highway
  • add unit test for waterway=lock_gate; foot=yes/no
  • add check as above
  • test and be happy :)

@koebi
Copy link
Collaborator Author

koebi commented Jun 2, 2022

This route and this route both include waterway=lock_gates that have a highway=*-tag.

I'd conclude that these edges tagged as highways work as expected.

koebi added a commit that referenced this issue Jun 2, 2022
@aoles
Copy link
Member

aoles commented Jun 2, 2022

Great, thanks a lot @koebi for verifying that in the presence of highway tag the routing works as expected. I can additionally confirm, that as long as there is a highway tag present the routing works even in the absence of an explicit foot tag, as here for example. For reference see also other cases around the world.

@takb takb closed this as completed in #1180 Jun 3, 2022
takb added a commit that referenced this issue Jun 3, 2022
koebi added a commit that referenced this issue Jun 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants