Skip to content

Instantly share code, notes, and snippets.

@gisfromscratch
Created February 25, 2023 14:11
Show Gist options
  • Save gisfromscratch/9e095e62933f87c2d0edceb69cd7797e to your computer and use it in GitHub Desktop.
Save gisfromscratch/9e095e62933f87c2d0edceb69cd7797e to your computer and use it in GitHub Desktop.
Querying the armed conflict events of 24th February 2022
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)
@gisfromscratch
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment