Visualize points and routes with GeoJSON in Amazon Quick Sight layer maps
Amazon QuickSight layer maps now support Point and LineString GeoJSON geometries, letting you plot individual locations and routes alongside traditional polygon layers.

Visualizing Points and Routes with GeoJSON in Amazon QuickSight Layer Maps
Amazon QuickSightâs layerâmap visual has evolved beyond static polygon shapes. By adding Point and LineString geometry types to the existing GeoJSON workflow, you can now display individual locationsâsuch as stores or facilitiesâand trace routesâlike delivery paths or flight tracksâdirectly on an interactive map. This guide walks through the required data structures, configuration steps, and bestâpractice tips for getting the most out of these new capabilities.
---
1. Preparing Your Data
GeoJSON File
- Format â Must be a valid `.geojson` file, â¤âŻ100âŻMB.
- Structure â A `FeatureCollection` containing an array of `Feature` objects. Each feature includes:
`geometry.type` â `Point` or `LineString`. `geometry.coordinates` â `[longitude, latitude]` for points; an ordered list of such pairs for lines. `properties` â Holds a join key* that matches a column in your QuickSight dataset.
```json { "type": "FeatureCollection", "features": [ { "type": "Feature", "geometry": { "type": "Point", "coordinates": [-73.9490, 40.7447] }, "properties": { "storeid": "S-109" } }, { "type": "Feature", "geometry": { "type": "LineString", "coordinates": [ [-73.7781, 40.6413], [-118.4085, 33.9416] ] }, "properties": { "routeid": "JFK-LAX" } } ] } ```
QuickSight Dataset
Create a dataset that contains the metrics you want to display (e.g., sales, flight count) and a key column that matches the `properties` field in the GeoJSON. The dataset can include additional dimensions for color, size, or tooltip enrichment.
---
2. Configuring the LayerâMap Visual
- Add a Layer Map to your dashboard and select the GeoJSON file as the shape source.
- Choose Geometry Type â QuickSight renders only one geometry type per layer. Pick Points to show locations or Lines to draw routes.
- Map the Join Key â Align the Shape file key (e.g., `store_id`) with the Dataset key field. Values must match exactly; field names can differ.
- Encode Metrics â Use dataset fields to drive visual attributes:
Color â Group lines or points by category (carrier, store type). Size/Width â Emphasize highâvolume routes or highâtraffic stores. Opacity* â Reduce visual clutter when many features overlap.
- Tooltips â Add any dataset columns you want to appear when a user hovers over a point or line.
---
3. When to Use Points vs. Lines
| UseâCase | Geometry | Why Choose It | |----------|----------|---------------| | Retail footprint | Point | Shows exact store locations; easy to overlay sales metrics per store. | | Delivery network | LineString | Highlights the path between origin and destination, revealing route efficiency or bottlenecks. | | Flight or shipping lanes | LineString | Communicates directional flow and distance; can be colored by airline or cargo type. | | Mixed analysis | Separate layers | Create one layer for points (e.g., warehouses) and another for lines (e.g., routes) to keep the map readable. |
---
4. Advanced Techniques
Controlling the Viewport
- Use the Fit to data option to automatically zoom to the extents of your GeoJSON features.
- Manually set the initial latitude, longitude, and zoom level for a consistent user experience.
Layer Ordering
- Stack multiple layer mapsâe.g., a polygon layer for sales territories beneath a point layer for storesâto provide context without obscuring details.
Programmatic Updates
- Store your GeoJSON in Amazon S3 and reference it via a URL. Updating the file in S3 automatically refreshes the map on the next dashboard reload, enabling nearârealâtime route changes.
---
5. Practical Tips
- Keep files lean â Large GeoJSON files increase load time. Split massive datasets into logical chunks (e.g., by region) and load only the needed layer.
- Validate geometry â Use tools like `geojsonlint` to catch malformed coordinates before uploading.
- Consistent CRS â QuickSight expects WGSâ84 (EPSG:4326). Ensure your coordinates are in longitudeâlatitude order.
- Test joins â A quick preview of the layer map with a small sample helps verify that the join key aligns correctly.
---
Closing Thoughts
By embracing Point and LineString geometries, QuickSight layer maps become a versatile canvas for locationâcentric storytelling. Whether youâre visualizing a chain of retail stores, mapping delivery routes, or illustrating global flight paths, the same GeoJSON workflow appliesâjust swap the geometry type and adjust your dataset joins. With thoughtful data preparation and layer configuration, you can turn raw coordinates into actionable insights that surface patterns only a map can reveal.
Source
Read original sourceWhy we picked this
Core ML platform feature showing AIâdriven visualization tools