1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = { "requests": [
9 {
10 "operation": "route",
11 "fromLat": -6.1754,
12 "fromLon": 106.827,
13 "toLat": -6.1274,
14 "toLon": 106.6577,
15 },
16 {
17 "operation": "walking-distance",
18 "fromLat": -6.1754,
19 "fromLon": 106.827,
20 "toLat": -6.178,
21 "toLon": 106.83,
22 },
23 {
24 "operation": "eta-batch",
25 "fromLat": -6.1754,
26 "fromLon": 106.827,
27 "destinations": [
28 {
29 "lat": -6.1274,
30 "lon": 106.6577,
31 },
32 {
33 "lat": -6.1954,
34 "lon": 106.8206,
35 },
36 ],
37 },
38 ] }
39
40
41run = client.actor("romy/waze-route-eta-scraper").call(run_input=run_input)
42
43
44print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
45for item in client.dataset(run.default_dataset_id).iterate_items():
46 print(item)
47
48