graphhopper / map-matching

The map matching functionality is now located in the main repository https://github.com/graphhopper/graphhopper#map-matching
https://www.graphhopper.com/open-source/
Apache License 2.0
785 stars 273 forks source link

Allow matching to ignore direction #63

Closed karussell closed 6 years ago

karussell commented 8 years ago

Often the direction of a recorded track is not known or hard to determine. For those cases add a "ignore_direction=true" option

michaz commented 6 years ago

Often the direction of a recorded track is not known or hard to determine.

When?

A Track Segment holds a list of Track Points which are logically connected in order. (GPX spec)

michaz commented 6 years ago

I think if a user indeed has a track which may be reversed, I would entice them to solve that on the client side and try the track in either direction.

karussell commented 6 years ago

When?

I think this could be just a user requirement, or wrongly mapped stuff or e.g. for bike people sometimes ignore oneways

I would entice them to solve that on the client side and try the track in either direction.

This is not always possible if I remember correctly the examples I had, as you can have this road:

A--->---B----<----C

and now a track that goes from A to B to C.

But we can also close here for now and reopen if we get real world examples.

michaz commented 6 years ago

I think this could be just a user requirement, or wrongly mapped stuff or e.g. for bike people sometimes ignore oneways

Oh, I see that, but that would be a new vehicle in my book, not a changed map-matching algorithm.

But we can also close here for now and reopen if we get real world examples.

Yup.