1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = { "requests": [
9 "0+00 cut 0 fill 0; 1+00 cut 120 fill 0; 2+00 cut 185 fill 0; 3+00 cut 90 fill 15; 4+00 cut 20 fill 80; 5+00 cut 0 fill 160; 6+00 cut 0 fill 110; 7+00 cut 0 fill 0 sq ft; shrinkage 10%",
10 "borrow pit grid 20 ft squares, cut depths: 2.1 1.8 1.5 1.2; 1.9 1.4 1.0 0.6; 1.2 0.8 0.5 -0.3 ft",
11 "grid 10 m squares, existing elevations: 102.4 101.9 101.2; 101.8 101.0 100.6; 101.1 100.4 99.8",
12 "pit 20 x 30 m bottom, 3 m deep, side slopes 1.5:1, swell 25%, trucks of 10 m3",
13 "trench 100 ft long, 3 ft wide, 6 ft deep, side slopes 1:1",
14 "conical stockpile 40 ft diameter, 12 ft high",
15 {
16 "type": "sections",
17 "sections": [
18 {
19 "station": "0+000",
20 "cut": 45,
21 "fill": 0,
22 },
23 {
24 "station": "0+020",
25 "cut": 30,
26 "fill": 5,
27 },
28 {
29 "station": "0+040",
30 "cut": 0,
31 "fill": 38,
32 },
33 {
34 "station": "0+060",
35 "cut": 0,
36 "fill": 20,
37 },
38 ],
39 "shrinkage": "15%",
40 "units": "m",
41 },
42 ] }
43
44
45run = client.actor("jumblemog/earthwork-calculator").call(run_input=run_input)
46
47
48print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
49for item in client.dataset(run.default_dataset_id).iterate_items():
50 print(item)
51
52