mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-10-28 00:53:45 +08:00
ab81464bd1
Add navigation and map matching providers with the vendored map service sources. Co-authored-by: Daniel Koepping <elkoled@gmail.com> Co-authored-by: Danny <dannyirwin31@yahoo.com> Co-authored-by: Prabhaav Pillai <prabhaav@msu.edu> Co-authored-by: dirwin31 <83434411+dirwin31@users.noreply.github.com>
14 lines
519 B
Bash
Executable File
14 lines
519 B
Bash
Executable File
#!/bin/bash
|
|
min_lon=$((${1}-1))
|
|
min_lat=$((${2}-1))
|
|
max_lon=$((${3}+1))
|
|
max_lat=$((${4}+1))
|
|
|
|
min_lon=$((${min_lon} < -180 ? -180 : ${min_lon}))
|
|
min_lat=$((${min_lat} < -90 ? -90 : ${min_lat}))
|
|
max_lon=$((${max_lon} > 180 ? 180 : ${max_lon}))
|
|
max_lat=$((${max_lat} > 90 ? 90 : ${max_lat}))
|
|
|
|
echo "osmium extract --bbox ${min_lon},${min_lat},${max_lon},${max_lat} filtered.osm.pbf -o box.osm.pbf --overwrite"
|
|
osmium extract --bbox "${min_lon},${min_lat},${max_lon},${max_lat}" filtered.osm.pbf -o box.osm.pbf --overwrite
|