AI • Science • Technology • Future

Business AI

Visualize Points and Routes with GeoJSON in Amazon Quick Sight Layer Maps

Image from the original article
Featured image: original publisher image. Via original publisher.

Amazon Quick Sight now supports GeoJSON layer maps with points and routes. This lets users visualize specific locations—like retail stores or distribution centers—and the routes between them, such as delivery paths or flight trajectories. Source: aws.amazon.com.

What Changed in Amazon Quick Sight Layer Maps

Previously, layer maps only showed custom shape layers, like sales territories or districts. These helped define regions but didn’t show individual locations or routes between them.

Now, layer maps support two new geometry types from GeoJSON: Point and LineString. A Point marks a specific location, like a single store. A LineString traces a path between points, like a flight or delivery route.

This lets businesses create detailed, real-world visualizations. For example, logistics teams can map entire delivery networks. Retail managers can see how customer concentration varies across zones.

GeoJSON Structure and Dataset Requirements

To use layer maps, you need a GeoJSON file and a Quick Sight dataset. These are joined using a shared key field.

The GeoJSON file must be in .geojson format and not exceed 100 MB. It starts with a FeatureCollection, which holds an array of features. Each feature has a geometry and properties object.

The geometry defines the shape. A Point has a ‘Point’ type and coordinates in [longitude, latitude]. A LineString has a ‘LineString’ type and an ordered list of coordinate pairs.

Each feature includes a properties object with metadata, like a store_id or route_id. This field is the join key. Values must match exactly between the GeoJSON and dataset.

For example, a store might have store_id ‘S-109’ and coordinates [-73.9490, 40.7447]. A flight route might have route_id ‘JFK-LAX’ and coordinates from JFK to Los Angeles. These are linked to dataset rows via their IDs.

How Points and Lines Are Used in Layer Maps

LineString Layers: Visualizing Routes

A LineString connects coordinates in sequence to form a path. Each route is one feature in the GeoJSON, with coordinates listed from start to end.

A flight from JFK to LAX is shown as a LineString tracing the path across the U.S.

Users can set color, width, and opacity based on dataset fields. For example, domestic carriers could be blue, international red. This helps identify patterns.

The join key—like route_id—links each line to a dataset row. When a user hovers over a route, a tooltip shows origin, destination, carrier, and departure time from the dataset.

LineString layers help operations teams monitor movement patterns—like air traffic or delivery routes—over time or across regions.

Point Layers: Plotting Fixed Locations

Point layers show specific, fixed locations—like retail stores or warehouses. Each point uses explicit longitude and latitude coordinates in the GeoJSON.

A store in Long Island City might be defined with coordinates [-73.9490, 40.7447] and store_id ‘S-109’. It appears as a marker with metrics like revenue or foot traffic in a tooltip.

Image from the original article
original publisher image. Via original publisher. · Source

Unlike the native point map, layer map points don’t support geocoding. Users must provide exact coordinates, which increases data prep effort but ensures accuracy.

Point layers use a fixed marker size. The size doesn’t change with data values. Color can be encoded from dataset fields, allowing visual distinction between store types or performance levels.

Key Differences Between Point Map and Layer Map Points

  • Geocoding: The native point map auto-converts names like ‘New York City’ into coordinates. Layer map points require explicit coordinates, eliminating geocoding but increasing data prep.
  • Data Updates: Native point maps refresh automatically with SPICE or Direct Query. Layer map points rely on a static GeoJSON file. Updates require manual re-upload or API calls.
  • Viewport Control: Native maps auto-fit and allow panning and zooming. Layer map points let users lock the view to a fixed region, preventing accidental navigation.
  • Appearance: Layer map points have fixed styles—uniform size, border, opacity. Color can be encoded from data. Size and style remain static, limiting dynamic visuals but ensuring consistency.

Layer map points are best for fixed locations—like regional offices or stores—rather than data that changes often. They’re ideal for stable, consistent reporting views.

Use Cases for Layer Map Points

A retail brand with stores across a metro area can use layer map points to track performance. Each store has a store_id in the GeoJSON, joined to a dataset with metrics like revenue, foot traffic, and satisfaction.

The map is set to a fixed view covering the entire metro area. Panning and zooming are disabled. This ensures all users see the same view, reducing misinterpretation.

A manager can quickly spot which stores perform well or poorly and correlate that with customer density or foot traffic. The consistent view supports standard reporting across time and departments.

Advanced Techniques in Layer Maps

Controlling the Viewport

For reporting, a fixed viewport is often best. Users can disable panning and zooming to keep the map stable.

To do this, set the MapState property in the visual configuration. It includes Bounds and MapNavigation fields.

Bounds define the minimum visible area—north, south, east, west. The map adjusts zoom to fit this area, minimizing whitespace.

To fit tightly, match the bounds’ aspect ratio to the dashboard container. For example, if the container is square, set a square bounds region.

These settings aren’t visible in the console. They’re set in the dashboard JSON and applied via CreateDashboard or UpdateDashboard APIs.

Layering Multiple Geometries

Layer maps let you combine different geometry types in one view. For example, show customer locations as points within US regional boundaries defined by polygons.

This helps see which regions have high customer density and link it to performance metrics like sales or satisfaction.

Another use case combines a delivery route (LineString) with scheduled stops (Points). The LineString shows the path. The points mark pickup and drop-off locations, making logistics easier to track.

To layer geometries, follow these steps:

  1. Set the sheet layout to free-form so visuals can overlap.
  2. Create two layer map visuals—one with Point GeoJSON, one with LineString GeoJSON.
  3. Ensure both use identical bounds for consistent alignment.
  4. Disable panning and zooming in both visuals.
  5. Hide the base map and background in the upper layer.
  6. Stack the visuals using drag-and-drop or precise size/position settings.

Layer order follows stacking. The topmost visual is accessible in tooltips. Place it above others so users see details when interacting.

Each sheet supports up to five layer map visuals, enabling complex, multi-layer dashboards.

Layer map rendering the JFK to Los Angeles flight path as a line
Layer map rendering the JFK to Los Angeles flight path as a line. Via original publisher. · Source

Dynamically Updating GeoJSON Files

Unlike native point maps, layer map geometry lives in the GeoJSON file and doesn’t update with dataset refreshes.

When the dataset refreshes, only metrics like revenue or foot traffic update. The geometry—like store locations—stays unchanged.

To update the map, modify the GeoJSON file and republish the dashboard. This can be done manually in the console by uploading a new file.

For frequent or automated updates—like real-time route optimization—integrate with AWS services. For example, use Amazon Location Service to generate new GeoJSON files and upload them to Amazon S3.

Update the dashboard JSON to point to the new S3 location. Then use the UpdateDashboard API to apply changes. Finally, call UpdateDashboardPublishedVersion to publish the update to users.

This workflow supports on-demand updates in embedded dashboards, such as those used by logistics teams to generate optimal routes with real-time waypoints.

Why This Matters for Business Users

Businesses using location-based decisions—like retail, logistics, or supply chains—now have precise, actionable tools.

Layer maps help users see customer concentration patterns, monitor route efficiency, and evaluate regional performance. Plotting both points and routes gives a richer view of operations.

Explicit viewport control and dynamic updates let organizations build stable, accurate dashboards—ideal for high-traffic or time-sensitive environments.

Limitations and Considerations

Layer maps have some limitations:

  • No geocoding: Points require explicit coordinates, increasing data prep effort and risking errors if coordinates are wrong.
  • Static geometry: Updates require manual or API-driven file changes, limiting real-time responsiveness.
  • Locked viewports: Fixed views may restrict exploration, especially for users who need to zoom or pan.
  • Layering complexity: Combining geometries needs careful setup and may be hard for new users.
  • Single geometry per layer: Each layer shows only one type—points or lines—so users must choose in a single GeoJSON file.

Layer maps are best for specific, stable use cases—like fixed-location reporting or operational monitoring—rather than general exploration.

What to Watch Next

Future updates may include dynamic GeoJSON generation, real-time data streaming, or integration with AWS Location Service to auto-generate geographic data.

Amazon is also expanding Quick Sight’s AI-driven insights, which may soon offer automated route optimization, anomaly detection, or predictive analytics for store performance.

For more details, see the official documentation.

Learn more about Amazon Quick Sight at aws.amazon.com/quick/quicksight.

Explore AWS machine learning tools at aws.amazon.com/blogs/machine-learning.

Sources & further reading

Featured image: original publisher image. Via original publisher. Image source