1import { ApifyClient } from 'apify-client';
2
3
4
5const client = new ApifyClient({
6 token: '<YOUR_API_TOKEN>',
7});
8
9
10const input = {
11 "assets": [
12 {
13 "lat": 37.187,
14 "lon": -86.1,
15 "label": "Mammoth Cave, KY - Mississippian limestone (karst hidden behind a generic generalized lithology)"
16 },
17 {
18 "lat": 36.38,
19 "lon": -120.75,
20 "label": "Clear Creek, CA - serpentinite (naturally-occurring asbestos)"
21 },
22 {
23 "lat": 42.15,
24 "lon": -123.7,
25 "label": "Josephine Ophiolite, OR - peridotite (ultramafic, hierarchy-only signal)"
26 },
27 {
28 "lat": 27.85,
29 "lon": -81.95,
30 "label": "Bone Valley, FL - phosphorite (radon parent rock)"
31 },
32 {
33 "lat": 39.9,
34 "lon": -102.5,
35 "label": "Eastern Colorado plains - Peoria loess (collapsible soil)"
36 },
37 {
38 "lat": 39.05,
39 "lon": -108.3,
40 "label": "Grand Mesa, CO - mapped landslide and colluvial deposits"
41 },
42 {
43 "lat": 32.4,
44 "lon": -87.3,
45 "label": "Alabama Black Belt - Mooreville Chalk, Coastal Plain Province"
46 },
47 {
48 "lat": 33.3,
49 "lon": -113.6,
50 "label": "La Posa Plain, AZ - playa and alluvial fines (soft compressible ground)"
51 },
52 {
53 "lat": 61.2,
54 "lon": -149.9,
55 "label": "Anchorage, AK - outside SGMC coverage (demonstrates the null-not-false contract)"
56 }
57 ],
58 "bufferMeters": 500,
59 "maxResults": 1000
60};
61
62
63const run = await client.actor("malonestar/usgs-bedrock-geology-lithology-screener").call(input);
64
65
66console.log('Results from dataset');
67console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
68const { items } = await client.dataset(run.defaultDatasetId).listItems();
69items.forEach((item) => {
70 console.dir(item);
71});
72
73