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

Add common part of commuters (CPC) feature #372

Open
brunodeprez opened this issue Mar 14, 2024 · 1 comment
Open

Add common part of commuters (CPC) feature #372

brunodeprez opened this issue Mar 14, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@brunodeprez
Copy link

Is your feature request related to a problem?

I wish I could use movingpandas to compare trajectories and to figure out if some of them are about two commuters commutting together. Obviously the commuters will not be sending the their positions at the same time, so I need to set a certain threshold of distance and time to say that those commuters were indeed together.

My use case is about a raft being carried on carrier boats. Both send their positions every hour, but not at the same time. I need to find the commom trajectory between those two objects, assuming the carrier boat will at some point drop the raft, having their trajectories to start diverging.

Describe the solution you'd like

I am not sure about that. Maybe addind a compare() method to the Trajectory object. This method will take as parameter another trajectory and return the common part between those two.

API breaking implications

[this should provide a description of how this feature will affect the API]

Describe alternatives you've considered

[this should provide a description of any alternative solutions or features you've considered]

Additional context

I have investigated scikit-mobility as well, and in particular common_part_of_commuters

I am looking for something similar but with movingpandas.

Thanks!

@brunodeprez brunodeprez added the enhancement New feature or request label Mar 14, 2024
@anitagraser
Copy link
Collaborator

This is related to #37

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants