georust / georust/rstar

lines in 3D use case

Open
#175 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Rust
Stars
559
Forks
84
Avg merge
2d 1h
Merged PRs (30d)
3

Description

I have the use case of searching nearest line segments based on an input location (from GPS), but it includes the time dimension too. It is for finding train paths based on location, time combination.
So, a train goes from A to B at 10:00h but also at 11:00h. Given a gps location along the route between A and B at a given time, which train journey is this gps coordinate related to, the 10:00h one or the 11:00h.
I wanted to model this with line segments in three dimensions, so from (Ax,Ay,10:00) to (Bx,By,10:45) and (Ax,Ay,11:00) to (Bx,By,11:45) are the two lines representing the two trains.
Can I support this out of the box with the rstar code or would I need to add an new data type to model the 3 dimensional point?
I would also need to add an attribute to each point for reference to metadata about the station.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.