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

Parking vs Park and Ride #526

Closed
ch33hau opened this issue Jul 17, 2024 · 1 comment
Closed

Parking vs Park and Ride #526

ch33hau opened this issue Jul 17, 2024 · 1 comment

Comments

@ch33hau
Copy link

ch33hau commented Jul 17, 2024

Hi there,

I am currently using the parking module and have found that the routing works as expected.

However, I have a question: Is there a way to configure it to use only parking areas with the OSM tag park_and_ride=yes? Am I correct in understanding that Motis currently uses any parking areas tagged with amenity=parking?

Thanks,
Chee Hau

@felixguendling
Copy link
Member

felixguendling commented Jul 18, 2024

Currently, there's no way to configure it. But I guess it's easy to change the code if you want to try:

void node(osmium::Node const& node) {
auto const& tags = node.tags();
if (tags.has_tag("amenity", "parking")) {
add_parking(osm_type::NODE, node.id(), node.location(), tags);
}
}

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

No branches or pull requests

2 participants