Get Started #4: Creating a Map with Data from a Snowflake Table
This tutorial provides a step-by-step guide to creating a map in Honeycomb Data Explorer using data from a Snowflake table. Watch the video or follow along with the step-by-step instructions below.
The Airbnb sample data used in the video is available for download here: https://docs.honeycombmaps.com/data/airbnb_data.csv. The data is sourced from Inside Airbnb and used under a Creative Commons Attribution 4.0 International License.
Step-by-Step Guide
1. Selecting a Snowflake Table
On the Honeycomb welcome screen, select a Snowflake table from the left-hand side. Note that tables are displayed with alias strings due to technical limitations.
2. Identifying the Correct Table Based on the Alias
- Copy the provided query to identify the relationship between the table aliases and the actual table names.
- Open a worksheet in the Snowflake UI.
- Paste the query and run it to see the references.
- Match the alias string from Honeycomb to the actual table name, schema, and database.
3. Examining the Data
- Perform a SELECT * LIMIT 10 query to understand the data's structure.
- Identify key columns such as categorical columns, numeric columns, and latitude and longitude columns.
4. Loading the Data into Honeycomb
- Click on the identified table in Honeycomb to load the data.
- Wait for the data to load. Honeycomb loads data upfront to enable fast aggregations & filtering.
5. Editing the Map
- Open the Edit Map sidebar.
- Rename the data source to something recognizable (e.g., "London Airbnb Data").
6. Managing Map Layers
- Hide the default point layer to avoid clutter.
- Add a new map layer:
- Choose the honeycomb (H3) layer for aggregating data.
- Select the data source.
- Choose H3 field and count ID for the measure field.
7. Adding Components
- Add a Title Component:
- Click Add Component.
- Select Title Card and place it on the left side.
- Name the map (e.g., "Rental Flats in London").
- Add a Bar Chart Component:
- Click Add Component.
- Select Bar Chart and place it on the right side.
- Choose the Airbnb data source and select a categorical dimension (e.g., type of rental).
- Count ID for the measure field.
- Add a Legend Component to switch between map layers:
- Rename layers for clarity (e.g., "Property Density" and "Property Locations").
8. Customizing Map Appearance
- Adjust the point layer settings:
- Reduce the radius for better visibility.
- Use a color scheme to differentiate data points (e.g., color by price).
9. Exploring Additional Features
- Optionally, add more components like a histogram chart for further analysis.
- Switch between light and dark mode..
10. Saving and Sharing
The next tutorial will cover how to save the map and share it with others.