1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "assets": [
10 {
11 "lat": 42.110415,
12 "lon": -93.560137,
13 "label": "Story County IA parcel - dominant soil NOT hydric, 5% hydric inclusion",
14 },
15 {
16 "lat": 42.45,
17 "lon": -93.55,
18 "label": "Hamilton County IA parcel - prime farmland if drained, all-hydric map unit",
19 },
20 {
21 "lat": 34.929063,
22 "lon": -77.345001,
23 "label": "Onslow County NC parcel - well-drained sand, best-case septic",
24 },
25 {
26 "lat": 30.84231,
27 "lon": -97.29329,
28 "label": "Bell County TX parcel - shrink-swell clay, foundation risk",
29 },
30 {
31 "lat": 39.7392,
32 "lon": -104.9903,
33 "label": "Denver CO infill site - urban land complex",
34 },
35 {
36 "lat": 61.566941,
37 "lon": -150.422585,
38 "label": "Matanuska-Susitna AK parcel - slope stability, 4% hydric depressions",
39 },
40 ],
41 "interpretations": [
42 "septic_tank_absorption_fields",
43 "dwellings_with_basements",
44 "dwellings_without_basements",
45 "small_commercial_buildings",
46 "local_roads_and_streets",
47 "shallow_excavations",
48 "solar_arrays_ballast_anchor",
49 "solar_arrays_soil_anchor",
50 ],
51}
52
53
54run = client.actor("malonestar/ssurgo-soil-suitability-screener").call(run_input=run_input)
55
56
57print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
58for item in client.dataset(run.default_dataset_id).iterate_items():
59 print(item)
60
61