Created
February 25, 2023 14:11
-
-
Save gisfromscratch/9e095e62933f87c2d0edceb69cd7797e to your computer and use it in GitHub Desktop.
Querying the armed conflict events of 24th February 2022
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
host = 'geoconflicts.p.rapidapi.com' | |
conflicts_client = EnvironmentClientFactory.create_client_with_host(host) | |
features_dict = query(conflicts_client, date=datetime(2022, 2, 24), format=OutFormat.ESRI) | |
events_featureset = FeatureSet.from_dict(features_dict) | |
aggregated_features_dict = aggregate(conflicts_client, date=datetime(2022, 2, 24), format=OutFormat.ESRI) | |
aggregated_events_featureset = FeatureSet.from_dict(aggregated_features_dict) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Needed imports
Needed functions
Official documentation