1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "geojsonText": "{\"type\": \"FeatureCollection\", \"features\": [{\"type\": \"Feature\", \"properties\": {\"productionplace\": \"Plot 1\", \"Area\": \"2.5\"}, \"geometry\": {\"type\": \"Point\", \"coordinates\": [-5.547219, 7.539989]}}, {\"type\": \"Feature\", \"properties\": {\"ProductionPlace\": \"Plot 2\"}, \"geometry\": {\"type\": \"Polygon\", \"coordinates\": [[[-5.551, 7.541], [-5.548, 7.541], [-5.548, 7.538], [-5.551, 7.538]]]}}, {\"type\": \"Feature\", \"properties\": {\"ProductionPlace\": \"Plot 3\", \"Area\": 9}, \"geometry\": {\"type\": \"Point\", \"coordinates\": [7.531204, -5.560113]}}]}",
10 "producerCountry": "CI",
11}
12
13
14run = client.actor("nemata/eudr-geolocation-validator").call(run_input=run_input)
15
16
17print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
18for item in client.dataset(run.default_dataset_id).iterate_items():
19 print(item)
20
21