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

Discussion: Route Storing #458

Open
maede97 opened this issue Aug 4, 2024 · 4 comments · May be fixed by #457
Open

Discussion: Route Storing #458

maede97 opened this issue Aug 4, 2024 · 4 comments · May be fixed by #457

Comments

@maede97
Copy link
Member

maede97 commented Aug 4, 2024

This issue should help us track several possibilities on how to tackle route storing (#457 )

@wp99cp
Copy link
Member

wp99cp commented Aug 4, 2024

The big question is, what kind of data do we need to store?

Data That Needs to be Stored:

  • some id or hash that indicates the route --> can then be used to retrieve the data via URL (UUID?)
  • encoded path (string)
  • encoded waypoints (string)
  • additional metadata per waypoint (to be future-proven, e.g., duration of a break at that waypoint, colour, etc.)
  • creation and modification date
  • all fields from the form (created by, map scale, etc.)

@wp99cp
Copy link
Member

wp99cp commented Aug 4, 2024

I would argue against using Firebase; it's a nice solution and would (potentially) fit our use case; however, setting up a local dev system is a pain... Also, for automated testing, it is not ideal.

@maede97
Copy link
Member Author

maede97 commented Aug 4, 2024

then, I propose something like "https://map.cevi.tools/recreate/UUID" which will recreate the export and create a new zip
or, for QR codes: "https://map.cevi.tools/gpx/UUID".

@maede97
Copy link
Member Author

maede97 commented Aug 4, 2024

I would tend to use the same UUID we already use to get states and logs. This makes it much easier to generate the buttons for sharing in the frontend (and generating the QR code)

@maede97 maede97 linked a pull request Sep 19, 2024 that will close this issue
11 tasks
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 a pull request may close this issue.

2 participants