| Crates.io | mgrs2latlong |
| lib.rs | mgrs2latlong |
| version | 0.1.0 |
| created_at | 2025-08-27 12:51:22.985011+00 |
| updated_at | 2025-08-27 12:51:22.985011+00 |
| description | A command-line tool for converting MGRS coordinates to latitude/longitude in CSV files |
| homepage | |
| repository | https://github.com/4n6h4x0r/mgrs2latlong |
| max_upload_size | |
| id | 1812531 |
| size | 19,992 |
A Rust command-line tool for converting MGRS (Military Grid Reference System) coordinates to latitude/longitude in CSV files.
Albert Hui albert@securityronin.com
Ensure you have Rust installed, then build the project:
cargo build --release
# Convert MGRS coordinates in input.csv and write to output.csv
./target/release/mgrs2latlong input.csv --output output.csv
# Convert and output to stdout
./target/release/mgrs2latlong input.csv
The tool accepts CSV files with MGRS coordinates in any column. MGRS coordinates should follow the standard format (e.g., "33TWM1234567890" or "33T WM 12345 67890").
The tool outputs a CSV file with:
latitude column with decimal degreeslongitude column with decimal degreesclap - Command-line argument parsingcsv - CSV file handlingregex - Pattern matching for MGRS detectiongeoconvert - MGRS coordinate conversionanyhow - Error handlingThis project is open source.