-
-
Notifications
You must be signed in to change notification settings - Fork 53
Expand file tree
/
Copy pathJustfile
More file actions
51 lines (40 loc) · 1.49 KB
/
Copy pathJustfile
File metadata and controls
51 lines (40 loc) · 1.49 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
help:
@just --list --unsorted
[group('develop')]
check-lean:
cargo check -p walkers
[group('develop')]
check-all-features:
cargo check -p walkers --all-features
[group('develop')]
check-demo:
cargo check -p demo_native
[group('develop')]
check: check-lean check-all-features check-demo
[group('develop')]
lints:
cargo fmt --all --check
cargo clippy --all-features -- -D warnings
cargo doc --no-deps
[group('develop')]
typos:
typos .
[group('publish')]
publish *args:
cargo publish -p walkers {{ args }}
cargo publish -p walkers_extras {{ args }}
# Bounding box roughly covering Dolnośląskie
DOLNOSLASKIE_BBOX := "14.757385,50.069481,17.341919,51.248163"
# It's the same bbox, but Overpass uses different order (:
DOLNOSLASKIE_OVERPASS_BBOX := "50.069481,14.757385,51.248163,17.341919"
# Download hiking trails for Dolnośląskie, Poland from OpenStreetMap using Overpass API and convert to GeoJSON
[group('data')]
overpass-trails-dolnoslaskie:
curl -G https://overpass-api.de/api/interpreter \
--data-urlencode 'data=[out:json][timeout:120];(relation["route"~"hiking|foot"]["colour"]({{ DOLNOSLASKIE_OVERPASS_BBOX }}););out geom;' \
-o trails.json
osmtogeojson trails.json > trails.geojson
# Download the latest PMTiles file for Dolnośląskie, Poland from Protomaps.
[group('data')]
protomaps-dolnoslaskie:
pmtiles extract https://build.protomaps.com/$(date -d 'yesterday' +%Y%m%d).pmtiles --bbox {{ DOLNOSLASKIE_BBOX }} dolnoslaskie.pmtiles