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

Add prep Sub-command for Valhalla Tile Generation #2

Open
6 tasks
thehoneymad opened this issue Sep 22, 2024 · 0 comments
Open
6 tasks

Add prep Sub-command for Valhalla Tile Generation #2

thehoneymad opened this issue Sep 22, 2024 · 0 comments
Labels
good first issue Good for newcomers

Comments

@thehoneymad
Copy link
Member

thehoneymad commented Sep 22, 2024

Description:
We need to add a new sub-command named prep to our CLI. The purpose of this sub-command is to generate Valhalla tiles from the provided data. There are two possible approaches:

  1. Local Option: Use the 350MB Bangladeshi OSM data available in the data/osm folder. Write Rust code to download Valhalla, then utilize Mjolnir locally to produce a tileset.

  2. Docker Option: Use the same OSM data to produce the tileset in a Valhalla Docker container. A sample setup can be referenced from gis-ops/docker-valhalla.

Regardless of the path chosen, the sub-command should be written in Rust and integrated under our existing CLI.


Acceptance Criteria:

  • Add a new prep sub-command to the CLI.
  • The sub-command should use Mjolnir to generate Valhalla tiles from the OSM data stored in data/osm.
  • Two approaches should be supported:
    • Local Execution: Rust code must manage the download and execution of Valhalla and Mjolnir locally to generate the tileset.
    • Docker Execution: The sub-command should also support generating tiles inside a Valhalla Docker container.
  • Ensure that relevant logs and progress indicators are displayed during the tile generation process.
  • Provide clear documentation in the README on how to use the prep sub-command for both local and Docker options.
  • Add automated tests to validate that the prep command works as expected in both local and Docker environments.

Additional Resources:

@thehoneymad thehoneymad converted this from a draft issue Sep 22, 2024
@thehoneymad thehoneymad changed the title Add a new CLI command named prep Add prep Sub-command for Valhalla Tile Generation Sep 22, 2024
@thehoneymad thehoneymad added the good first issue Good for newcomers label Sep 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
Development

No branches or pull requests

1 participant