Crates.io | osmptparser |
lib.rs | osmptparser |
version | 2.2.0 |
source | src |
created_at | 2019-08-12 01:41:33.895943 |
updated_at | 2024-08-26 11:28:16.116993 |
description | Openstreetmap Public Transport Parser |
homepage | |
repository | |
max_upload_size | |
id | 155994 |
size | 116,364 |
git clone git@github.com:cualbondi/osmptparser.git
wget http://download.geofabrik.de/south-america/ecuador-latest.osm.pbf
cargo run --example main ecuador-latest.osm.pbf
Time it
cargo build --release --example main && /usr/bin/time -v target/release/examples/main ecuador-latest.osm.pbf
cargo run --release ./ecuador-latest.osm.pbf --filter "boundary=national_park"
you should get a json list with one geojson per area that matches with the filter
cargo run --release ./ecuador-latest.osm.pbf --filter-ptv2
you should get a json list with one geojson per ptv2 containing a linestring and each stop
cargo fmt -- --check && cargo clippy -- -D warnings -A clippy::ptr-arg && cargo test
wget http://download.geofabrik.de/south-america/ecuador-latest.osm.pbf
osmconvert ecuador-latest.osm.pbf -o=ecuador.o5m
osmfilter ecuador.o5m --keep= --keep-relations="@id=85965 =2030162" > test.o5m
osmconvert test.o5m -o=test.pbf