Explaining the workflow for creating heatmaps with the Geospatial Information Authority of Japan API for beginners
By LRTK Team (Lefixea Inc.)
Even if you want to create a heatmap using GSI data, beginners often get confused at first about "which API to use in the first place," "is elevation color-coding the same as a heatmap," and "how to combine my point data with GSI map data." In practice, the GSI publishes map and elevation information as so-called XYZ-format GSI tiles; the basic approach is to load those as a basemap or base data, then layer your own aggregation process on top to build a heatmap. It is easier to understand if you organize your thinking as "use the published tiles as a foundation and create your own meaningful color-coding" rather than assuming "the GSI API will produce the final result in one go."
Table of Contents
• Basics you should know before creating heatmaps with the GSI API
• Types of GSI data suitable for heatmaps
• Overall flow for beginners
• Workflow for creating heatmaps from elevation data
• Workflow for creating heatmaps from point data or location logs
• Coordinate and zoom considerations to grasp before implementation
• Design for making readable heatmaps
• Common mistakes and how to avoid them
• Practical use cases
• Summary
Basics you should know before creating heatmaps with the GSI API
What beginners should grasp first is that the GSI does not publish "heatmaps themselves" but multiple types of tile data that can be used for map display and analysis. GSI tiles are delivered in pre-tiled XYZ format, which many web map APIs can handle easily. Each tile is standardized as 256 pixels square, and because X increases eastward and Y increases southward from the top-left origin, the structure is easy to incorporate not only into map displays but also into your own aggregation logic. In other words, the GSI’s published data are very useful as a foundation for "basemaps," "elevation," and "some thematic data," and the typical approach is to implement gradients or density representations on top of them.
By heatmap here we mean a continuous color representation that shows the highs and lows or density bias of values within an area. Examples include elevation differences, concentrations of inspection records, distributions of disaster-related points, or biases in the number of on-site confirmations. On the other hand, the GSI’s color-coded elevation maps are pre-styled thematic maps that express elevation values with discrete colors. Although they look similar to heatmaps, their meaning is "visualization of elevation" and they are different in purpose from general heatmaps that show things like "number of observations," "occurrence frequency," or "usage density." Confusing these can easily steer your visualization in the wrong direction.
You should also understand the usage terms. The GSI publishes usage conditions in its list of tiles, and for real-time loading on websites, software, or applications it generally requires only source attribution and no application. However, not all tiles are subject to exactly the same conditions, and some require specific notes or additional attribution. Therefore, if you plan to publish a heatmap in a real project, it’s important to confirm early on not only the technical aspects but also "which layers you used" and "whether there are layer-specific cautions."
Types of GSI data suitable for heatmaps
GSI data that are easy for beginners to handle can be broadly categorized into basemaps, elevation tiles, pre-made thematic tiles, and data that include features. Basemaps, such as the standard map or light-colored map, serve as layers to use as the foundation for heatmaps. The standard map displays place names and roads clearly and is suitable for explanatory screens. The light-colored map has a subdued background that often pairs well with heatmaps where you want to highlight color gradients. Think of the basemap as serving readability; the actual values should come from separate data.
Elevation tiles are the data you should understand best when creating heatmap-like visualizations with the GSI API. Elevation tiles come in text format and PNG format, and both use the same tile coordinate system as map tiles. The text format stores elevation values as 256 rows by 256 columns, comma-separated, with "e" used for pixels without values. The PNG format encodes elevation in RGB values, making it lighter than the text format. In other words, if you prioritize ease of analysis, use the text format; if you care about display speed and data transfer, use the PNG format.
As pre-made thematic tiles, the GSI also provides already-visualized tiles such as color-coded elevation maps. These can be used to intuitively show terrain highs and lows without reading raw elevation values and applying your own color scheme. However, color-coded elevation maps are a GSI-prepared terrain representation, not a "self-weighted heatmap." They are useful for examining disaster risk or initial terrain assessment, but if you want to show custom metrics like counts or operational density, you’ll need to aggregate your own values and visualize them separately. Also, color-coded elevation maps require additional attribution for marine areas. Don’t overlook this point for public use.
Feature data are also available in formats such as GeoJSON. For example, data with points and attributes—like designated emergency evacuation sites—can be obtained as GeoJSON and include attributes such as facility names, addresses, and applicable disaster types. This kind of data can be displayed directly as points, or aggregated by area to create a heatmap. For beginners, a sensible progression is to start by placing points on a basemap, then move on to mesh aggregation in a next step.
Overall flow for beginners
The overall flow for creating heatmaps with the GSI API is practically very simple. First, decide what you want to show with color. This determines the data you need—whether it’s elevation differences, concentration of counts, or a provisional risk score. Second, choose the basemap. Third, obtain the source data that provides your values. Fourth, normalize those values into units that are easy to compare on the map. Fifth, decide the color classes and render the map, and finally prepare legends and notes so the map cannot be misread. There are many technical ways to implement this, but conceptually the process is organized by this order.
A common beginner mistake is assuming that simply overlaying data fetched from the API will automatically produce a heatmap. In reality, map tiles and elevation tiles only provide the underlying values; it is up to you to decide how to color-code them and what unit to use for aggregation. For example, drawing point records directly will look like a point cloud, applying a blur with a fixed radius approximates a density distribution, and aggregating into grids yields a comparison-friendly business-oriented heatmap. In short, understand that data retrieval and visualization design are separate steps.
Also, avoid over-engineering at the start. Begin with a small area, place values over a basemap, and check whether color biases are readable. Then expand the target area and refine color schemes, legends, update frequency, and publication methods. Because GSI tiles use the XYZ scheme and are easy to handle, initial prototypes are relatively straightforward. But if you misdesign aggregation units or presentation, you can end up with a visually pleasing map that is unusable for decision-making. During prototyping, keep returning to "what you want to show" as a guiding principle.
Workflow for creating heatmaps from elevation data
When using elevation data, first decide whether you want to see "terrain highs and lows," "a rough sense of local undulation," or "custom elevation classes." If you only want a quick sense of terrain, using the color-coded elevation map as a background is the fastest method. If you want to divide elevation bands by a fixed standard or display a specific area with a different palette, retrieve the elevation tiles themselves and create your own classification. In short, your entry point depends on whether you prioritize immediate visual impact or flexibility in aggregation.
When handling elevation tiles directly, fetch the tiles corresponding to your target area and read each pixel as an elevation value. The text format can be handled as 256 rows by 256 columns of numbers, and the PNG format can be converted back to elevation from RGB values. Important here is to understand that elevation tile values are not raw survey readings but values calculated and smoothed from the original elevation model. The GSI explains that at the maximum zoom level values are smoothed linearly from nearby elevation points, and at smaller zooms values are created from the four-point average of the higher zoom. Therefore, treat these as values prepared for visualization rather than exact raw survey measurements.
There are multiple elevation data series, and the GSI sample shows accuracy levels ordered as DEM1A, DEM5A, DEM5B, DEM5C, DEM10B, and DEMGM from highest to lowest. High-accuracy data are not uniformly available nationwide; depending on location the referenced elevation model may differ, and discontinuities in elevation values, cross-sections, or color-coded elevation maps can occur at boundaries. When beginners create heatmaps, it’s important to understand that color steps do not always indicate abrupt local changes but can originate from differences in the underlying data.
To make elevation-based heatmaps readable in practice, avoid too fine a color classification based on absolute values. Grouping into categories like low, mid, and high, or using thresholds meaningful to your task, is often more communicative. For example, in initial flood assumption or evacuation route planning, emphasizing low-lying areas is more actionable than finely distinguishing elevation levels. Conversely, in earthwork or slope analysis you might focus less on absolute elevation differences and more on slope or continuity of terrain change. GSI elevation tiles are an effective foundation, but the final color semantics must be designed to match the business purpose.
Workflow for creating heatmaps from point data or location logs
What many practitioners searching for "heatmap" actually want to create is a map that shows "concentration of points" or "biases in occurrences" rather than elevation. The approach is even clearer in this case. First, prepare your point data and attach values such as counts, timestamps, importance, or anomaly flags to each point. Next, rather than drawing those points directly on the map, aggregate them within defined areas. Finally, convert the aggregation results to colors and overlay them on a basemap. In this way, the map shows "locations" and the heatmap shows "biases."
How to use GSI data in this context is straightforward: use it primarily as a basemap. Choose the standard map when you need explanatory clarity, or the light-colored map when you don’t want the basemap to interfere with heatmap colors. Additionally, if needed, overlay point-type or thematic data published by the GSI as auxiliary information. For example, overlaying your aggregated report counts or patrol logs while referencing the distribution of evacuation-related facilities makes the map easier to interpret than a bare count distribution. Separating basemap and value sources is the least error-prone approach for beginners.
Choosing the unit for aggregating points is crucial. If the unit is too small, the plot will show raw scatter and look noisy. If it’s too large, local biases disappear. Therefore, in practice choose a unit that matches "the area the field needs to judge." Use coarse units to view regional trends and finer units to examine concentration around facilities. Because GSI tiles are handled in 256-pixel units, decide up front at which zoom and granularity you will display the data so later steps remain stable.
Coordinate and zoom considerations to grasp before implementation
One common cause of broken heatmaps is insufficient understanding of coordinates and zoom. GSI tiles use the World Geodetic System and, for maps in Japan, adopt JGD2011 while being tiled in a Mercator projection. The globe is defined as a single tile at zoom level 0, and each increase in zoom divides each tile into four by splitting both axes in half. If you overlay point data or custom meshes without understanding these premises, positional shifts or inconsistent appearance are likely. Beginners should adopt the habit of confirming that coordinate systems and tile coordinates align before visualization.
Also, changing zoom levels changes the meaning conveyed by the same color. Colors intended to show "broad trends" on a wide-area view should not be used with fine-grained aggregations intended for close-up views. Conversely, if you need local decision-making but only have coarse aggregations, the map will be unusable for field work. Elevation tiles also change how referenced values are constructed depending on zoom level. Therefore, the map creator must first decide "at which zoom the map will be used" and align aggregation units and color schemes to make sense at that zoom.
The relationship between basemap selection and zoom is also important. Standard and light-colored maps are provided across multiple zoom bands, and the density of map information varies with zoom. In practical heatmaps, a basemap that is too detailed interferes with reading values, while one that is too coarse makes location identification difficult. Beginners tend to increase basemap information, but the heatmap’s main actor is the color bias. Keep the basemap as a "reading aid" and avoid letting it compete for attention.
Design for making readable heatmaps
To create readable heatmaps, it is more important to design meaningful color steps than to increase the number of colors. Beginners often prioritize smooth gradients, but in practice it is more important that viewers can tell "where to pay attention," "what is high," and "what stands out compared to the reference." Therefore, decide threshold logic first, and make the legend explain the meaning of colors. For elevation, use height bands; for point data, use count or weight bands; for patrol logs, use update frequency bands—design color classes according to the meaning of the value to reduce misinterpretation.
Making the basemap pale is also effective. Backgrounds like the GSI light-colored map make color overlays easier to see while still allowing identification of place names and roads. Highly saturated basemaps compete with heatmap colors. For distributions such as disasters, inspections, patrols, or usage density, subtracting basemap visual weight so the thematic color differences stand out improves readability. When creating maps, it’s easy to focus on basemap detail, but what matters for decisions is the meaning of the colors and their locations. Narrowing the role of the basemap directly improves readability.
Another important point is how to handle places with no values. Elevation tiles use "e" for missing pixels or have defined areas like the sea where data do not exist. For point-data heatmaps you must distinguish between zero and unobserved. Painting zero and missing with the same color risks misinterpreting places that simply have no data as "no problem." Especially for beginner-targeted maps, explicitly clarifying this distinction in the legend or notes raises practical reliability.
Common mistakes and how to avoid them
A common mistake is treating color-coded elevation maps as equivalent to heatmaps. Color-coded elevation maps are convenient for viewing terrain but do not represent counts or provisional risk scores. Mistaking them for "risk gradients" causes significant misinterpretation. The workaround is simple: in the design phase be able to state in one sentence what value you are coloring. If it’s unclear whether the map displays elevation, point density, or a custom evaluation, the map may look neat but be impractical.
Second, ignoring differences in source data is another frequent error. GSI elevation displays use the highest-precision tile available at each location, but underlying elevation models and measurement times can differ by area. This can cause discontinuities at boundaries. If you are unaware of this, you may mistake color breaks for on-site anomalies. To avoid this, refrain from over-interpreting fine steps on wide-area maps and use additional verification methods when necessary.
Third, insufficient checking of usage conditions is a common pitfall. While GSI tiles are easy to use with source attribution for real-time loading, some tiles require specific notes or additional attribution. When publishing or sharing externally, confirm the usage conditions not only for the basemap but also for thematic and auxiliary layers. Being able to display something technically does not mean it is appropriate to publish. Cultivate the habit early of organizing source attributions alongside implementation to reduce rework.
Practical use cases
Three clear practical use cases are disaster prevention, maintenance management, and on-site confirmation. For disaster prevention, overlaying your aggregated danger points or confirmation counts on top of elevation and terrain trends helps identify priority inspection areas. For maintenance management, aggregating inspection results or anomaly reports by location can visualize areas with biased response or unchecked areas. For on-site confirmation, density-mapping patrol logs or photo locations makes it easy to see where is confirmed and where is thin. The value of the GSI API is that it lets you organize business data within a geographic context.
Also, it’s important in practice not to aim for a perfect heatmap from the start. Start with a small area, check whether color meanings are communicated, whether the basemap is readable, and whether positions are accurate; then adjust aggregation units and thresholds as needed. A heatmap’s value lies more in being read correctly than in being created. GSI’s public data are easy to use as a foundation, so initial setup is not a high hurdle. However, if the map will be used for operational decisions, readability and consistency of interpretation from a field perspective are crucial. With that focus, the map becomes not just visually appealing but decision-supporting. In situations requiring linking field-collected position information to map-based judgment, using LRTK, an iPhone-mounted GNSS high-precision positioning device, can make field position verification and simple surveying smoother. Combining visualization via the GSI API with high-precision field positioning enables workflows that go beyond simply looking at maps and support practical operations.
Summary
When you organize the workflow for creating heatmaps with the GSI API for beginners, the key points are very clear. First, decide which basemap to use. Next, decide whether the value you want to express with color is elevation, counts, or location logs. Then obtain GSI tiles, elevation tiles, and if necessary point-based data, aggregate them in units that suit your purpose, convert them into meaningful color classes, and overlay them. Following this order helps beginners maintain clarity about "what and how is being placed on the map."
A practically useful heatmap prioritizes positional reliability and ease of interpretation over flashy presentation. Therefore, use GSI public data for broad understanding and, when necessary, perform on-site position checks and coordinate verification. Especially when linking field-acquired location information to map-based decisions, the accuracy of coordinates directly affects work quality. In such cases, leveraging LRTK for high-precision GNSS positioning on an iPhone can make field verification and simple surveying smoother. Combining GSI API visualization with high-precision field positioning makes it easier to build operations that go beyond merely viewing maps and actually support practical decision-making.
Next Steps:
Explore LRTK Products & Workflows
LRTK helps professionals capture absolute coordinates, create georeferenced point clouds, and streamline surveying and construction workflows. Explore the products below, or contact us for a demo, pricing, or implementation support.
LRTK supercharges field accuracy and efficiency
The LRTK series delivers high-precision GNSS positioning for construction, civil engineering, and surveying, enabling significant reductions in work time and major gains in productivity. It makes it easy to handle everything from design surveys and point-cloud scanning to AR, 3D construction, as-built management, and infrastructure inspection.


