-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
editoast: extract osm_to_railjson in separate binary
Signed-off-by: Tristram Gräbener <[email protected]>
- Loading branch information
Showing
7 changed files
with
20 additions
and
17 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
use clap::Parser; | ||
use std::path::PathBuf; | ||
|
||
#[derive(Parser)] | ||
#[command(about, long_about = "Extracts a railjson from OpenStreetMap data")] | ||
pub struct OsmToRailjsonArgs { | ||
/// Input file in the OSM PBF format | ||
pub osm_pbf_in: PathBuf, | ||
/// Output file in Railjson format | ||
pub railjson_out: PathBuf, | ||
} | ||
|
||
fn main() { | ||
let args = OsmToRailjsonArgs::parse(); | ||
osm_to_railjson::osm_to_railjson(args.osm_pbf_in, args.railjson_out).expect("Could not convert osm to railjson"); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters