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

Codebase refactor ideas #84

Open
dabreegster opened this issue Jan 17, 2025 · 0 comments
Open

Codebase refactor ideas #84

dabreegster opened this issue Jan 17, 2025 · 0 comments

Comments

@dabreegster
Copy link
Collaborator

Low priority ideas to improve things.

  • Stop manually generating GJ features within "application logic". Write type-safe structs and use geojson::ser annotations on geometry, then in the wasm lib.rs layer, do the actual serializing. Ideally this could also hook into https://github.com/Aleph-Alpha/ts-rs or similar to generate wasm.ts on the other end, rather than manually writing it.
  • Try replacing lots of network representation and routing logic with https://github.com/a-b-street/15m/tree/main/graph. That upstream library would have to be generalized for modal filters and turn restrictions. It's certainly going to be faster to initially iterate on those things directly in this codebase.
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

1 participant