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

Find vp nearest stop #933

Merged
merged 11 commits into from
Oct 24, 2023
Merged

Find vp nearest stop #933

merged 11 commits into from
Oct 24, 2023

Conversation

tiffanychu90
Copy link
Member

@tiffanychu90 tiffanychu90 commented Oct 24, 2023

segment speeds

  • expand map_partitions usage more...create a shapely_project_all_vp.py script. We can project the vp position along shape_geometry fairly quickly...and use this to visualize loop_or_inlining shapes all at once
  • once we have each vp's shape_meters, combine that with the prepped stops_projected to get stop positions.
  • for each trip in the vp dataset, to finding the nearest vp to each stop position for each trip (loop_or_inlining==0 only)...not sure how to work on more complex shapes yet
  • attach the nearest vp and subseq vp and get the interpolated arrival time (set up the same way as in rt_utils)
  • set up 24_plot_interpolation_results.ipynb to see what the results look like
  • actually, this basically provides the RT derived stop_times table needed for Research Request - use vehicle positions near stop as actual_stop_arrival #785
    • except, all the loop_or_inlining==1 trips are missing from this right now

@tiffanychu90 tiffanychu90 changed the title Sjoin vp nearest stop Find vp nearest stop Oct 24, 2023
3 similar comments
@tiffanychu90
Copy link
Member Author

tiffanychu90 commented Oct 24, 2023

@edasmalchi: some early work to see stop arrivals using interpolation:
f"{SEGMENT_GCS}stop_arrivals_{analysis_date}.parquet", only for the sep2023 date.

@tiffanychu90 tiffanychu90 merged commit adff709 into main Oct 24, 2023
7 checks passed
@tiffanychu90 tiffanychu90 deleted the sjoin-vp-nearest-stop branch October 24, 2023 21:40
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