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

Inferring travel time between points in resulting geometry #209

Closed
kodonnell opened this issue Aug 31, 2021 · 1 comment
Closed

Inferring travel time between points in resulting geometry #209

kodonnell opened this issue Aug 31, 2021 · 1 comment

Comments

@kodonnell
Copy link

Is your feature request related to a problem? Please describe.
Say I have three points I want to match: A at 10:01am, B at 10:02am, and C and 10:03am. Say the map-matched path/geometry is a line of 10 points - what I want to do is infer the time at each point e.g. was the time for the 5th point 10:02.05am or 10:02:59am etc. The main problem with trying to do this manually myself is I don't think I can associate each of my three input points to the one of the 10 points e.g. I don't know if point B was matched to the 2nd or 9th point etc., and hence can't infer times myself (by calculating distance etc.)

Describe the solution you'd like
In python, either:

  • Built in support for doing this so that e.g. if a Trajectory is provided, the timestamps are also inferred. However, this may be messy as inferring time depends on speed limits etc.
  • Something similar to result.indices but which points to the index of the point in the resulting geometry of points, not edges. Then I could work backward myself as outlined above. Having access to more point/line metadata may help too (e.g. OSM speeds etc.).

Describe alternatives you've considered
I could manually reconstruct graphs myself, but that's pretty icky! I've had a look around and search but didn't seem to see anything solving this - apologies if I missed it!

Additional context
Ultimately, it's for pretty animations of routes, which requires knowing the time at each point.

@cyang-kth
Copy link
Owner

I think currently there is no direct support for this. Maybe you could try to use the Python API to do some post-processing.

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