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

Embedding tracks' curve numbers and names #2

Open
AlexGustafsson opened this issue Jul 30, 2022 · 1 comment
Open

Embedding tracks' curve numbers and names #2

AlexGustafsson opened this issue Jul 30, 2022 · 1 comment

Comments

@AlexGustafsson
Copy link

I'd like to contribute the curve indices and names to this project. What would be the best way of going about doing that?

My use case is to use the data to identify what curve a car is currently in given its coordinate.

For example, for the French circuit, I could add the following JSON for the tenth curve.

{
  "type": "Feature",
  "properties": {
    "id": "10",
    "Name": "Courbe de Signes"
  },
  "geometry": {
    "type": "LineString",
    "coordinates": [
      [5.802532, 43.25119],
      [5.802799, 43.251096],
      [5.803101, 43.250931],
      [5.803379, 43.250709],
      [5.803556, 43.250497],
      [5.803681, 43.250229],
      [5.803716, 43.249894]
    ]
  }
}

An alternative would be to have "bounding circles" instead to include the area of the curve, that way the math would probably be easier, but then again, that could be done by using a bounding box for the line as well.

@bacinger
Copy link
Owner

While I like the idea, I am afraid that something like that would be hell to maintain and keep up-to-date. Say the track is modified, or just one vertex is moved, it would mess up the curve indices, and it would no longer overlap.

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