Skip to content

Conversation

@traines-source
Copy link

An attempt at using the center of way pois instead of a random node, to avoid something like that:
image
when using https://www.openstreetmap.org/way/178167136 as the destination.

But then, other issues occur:
image

Also before:
image
After:
image

So probably we need to find another solution...

return osm::Location{l.location().x() / n,
l.location().y() / n};
})
: w.nodes()[w.nodes().size() / 2].location();
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe also switch to w.nodes()[w.nodes().size() / 2].location() in lines 88 and 67, to use the approx. middle of a street etc and not one of the ends as the target location?

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 this pull request may close these issues.

1 participant