1import { ApifyClient } from 'apify-client';
2
3
4
5const client = new ApifyClient({
6 token: '<YOUR_API_TOKEN>',
7});
8
9
10const input = {
11 "requests": [
12 "flexible pavement, 5 million ESALs, reliability 95%, S0 0.35, ΔPSI 1.9, subgrade MR 5000 psi",
13 "check 4 in asphalt, 10 in base, 8 in subbase for 2 million ESALs, MR 7500 psi, 95% reliability",
14 "asphalt road: AADT 12000, 10% trucks, truck factor 1.2, 3% growth, 20 years, 2 lanes each way, CBR 6, 90% reliability",
15 "rigid pavement, 5.1 million ESALs, reliability 95%, S0 0.29, ΔPSI 1.7, k 72 pci, Sc 650 psi, Ec 5,000,000 psi, J 3.2, Cd 1.0",
16 "concrete pavement 30 million ESALs, k 40 MPa/m, flexural strength 4.5 MPa, f'c 32 MPa, doweled, tied shoulders, reliability 95%",
17 "ESALs from axles: 18 kip single 500 per day, 32 kip tandem 300 per day, 10 kip single 900 per day, 2% growth, 20 years",
18 {
19 "type": "flexible",
20 "w18": 3000000,
21 "mr": "40 MPa",
22 "subbase": false,
23 "reliability": 90,
24 "units": "metric"
25 }
26 ]
27};
28
29
30const run = await client.actor("jumblemog/pavement-design-calculator").call(input);
31
32
33console.log('Results from dataset');
34console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
35const { items } = await client.dataset(run.defaultDatasetId).listItems();
36items.forEach((item) => {
37 console.dir(item);
38});
39
40