This repository contains example code to support the blog post Extend geospatial queries in Amazon Athena with UDFs and AWS Lambda. The UDF makes it straightforward for Amazon Athena to find out which Uber H3 hexagon a pair of (lat, long) coordinates are in. This can be used for subsequent analysis and visualisation.
We include code for the AWS Lambda function that powers the new Athena UDF. Also included is an example Jupyter Notebook which may be used in an Amazon SageMaker Notbook Instance to render a choropleth map.
- Package the UDF by going to udf directory, and launch
mvn clean package
. - Run
cdk deploy
in the infrastructure directory of the repository.
See CONTRIBUTING for more information.
This library is licensed under the MIT-0 License. See the LICENSE file.