INFRA INTELLIGENCE JP Contact

How to show kilometer post data on a map: loading a CSV into free QGIS, and finding spots between posts

A CSV of kilometer posts with latitude and longitude can be loaded into the free map software QGIS and shown as points every 100 m. The loading steps, using the GSI map as a background, and how to work out a spot between posts such as 67.95 km.

An expressway curving gently between misty hills, with white posts at even intervals on the shoulder (illustrative)

Inspection records and reports often give locations like "around kilometer post 67.9". With data listing kilometer posts alongside latitude and longitude, those records can be laid out on a map.

This article explains how to show a kilometer post CSV (a text file in table form) on a map with the free map software QGIS, and how to find a spot between two kilometer posts. If you have no data to hand, you can try it with the free Shin-Tomei Expressway sample published by Infra Intelligence.

What is in a kilometer post CSV?

To use kilometer posts on a map, a CSV needs at least three columns: the kilometer post number, latitude and longitude.

A table with three columns, kp, lat and lon. The first row is 52.8, 35.267101, 138.913776. kp is the kilometer post number (km, every 0.1 km), lat is latitude and lon is longitude, both in WGS84
Fig. 1 The three columns of a kilometer post CSV. Each row is the position of one kilometer post

The free sample from Infra Intelligence (Shin-Tomei Expressway, Gotemba JCT to Toyota-Higashi JCT) looks like this (source: the sample's README).

  • kp: kilometer post number (km), every 0.1 km, that is every 100 m
  • lat: latitude (WGS84)
  • lon: longitude (WGS84)
  • Rows: 2,004 (52.8 to 253.1)
  • The two carriageways are not separated; each point is on the centre line of the main road

Always specify which geodetic system (the model of the Earth's shape) the coordinates use when putting them on a map. Get it wrong and the points appear in the wrong place.

Which software can show it on a map?

There are several ways to put a CSV on a map, but with data that has many points, like kilometer posts, watch the limit on the number of points.

  • QGIS (free map software): installed on your computer. It handles thousands to tens of thousands of points and lets you choose the background map. This article uses QGIS.
  • Google My Maps: easy to use in a browser, but its help asks you not to import files with more than 2,000 rows (source: Google My Maps Help). The Shin-Tomei sample has 2,004 rows, slightly over the limit, so it needs to be split in two.

Showing the CSV on a map in QGIS

In QGIS, kilometer posts can be shown on a map in four steps (source: QGIS User Guide, "Opening Data").

A left-to-right flow chart. 1 In the Data Source Manager, choose Delimited Text and select the file. 2 Set the X field to longitude (lon) and the Y field to latitude (lat). 3 Set the geometry CRS to EPSG:4326 WGS 84 and click Add. 4 Use the GSI standard map as a background and check the points sit on the road. Below, points every 100 m line up along a road
Fig. 2 Four steps to show a kilometer post CSV on a map in QGIS
  1. Choose the CSV: open the Data Source Manager (Ctrl+L), choose Delimited Text and select the CSV file.
  2. Set the latitude and longitude columns: under Geometry Definition, choose Point coordinates, then set the X field to longitude (lon) and the Y field to latitude (lat). X is longitude and Y is latitude, so take care not to swap them.
  3. Set the geodetic system: set Geometry CRS to "EPSG:4326 - WGS 84" and click Add.
  4. Add a background map: with a map underneath, you can check that the points sit on the road. GSI tiles (the standard map from the Geospatial Information Authority of Japan) can be loaded in real time by software without applying, as long as the source is credited (source: GSI, "List of GSI Tiles").

Click a loaded point to see its kilometer post number. Showing the kp column as point labels lets you read the numbers on the map.

Points loaded this way only reference the original CSV. If you will keep using them, save them in a QGIS format such as GeoPackage.

How do you find a spot between kilometer posts?

A spot between the 100 m kilometer posts, such as 67.95, can be found in proportion from the coordinates of the posts on either side.

A diagram with points 67.9 and 68.0 and point 67.95 halfway between. The ratio is (67.95 − 67.9) ÷ (68.0 − 67.9) = 0.5. Latitude is 35.152348 + (35.152259 − 35.152348) × 0.5 = 35.1523035; longitude is 138.853088 + (138.852000 − 138.853088) × 0.5 = 138.852544
Fig. 3 Finding the position of 67.95 in proportion from the positions of 67.9 and 68.0

Using the Shin-Tomei sample as an example:

  • 67.9: latitude 35.152348, longitude 138.853088
  • 68.0: latitude 35.152259, longitude 138.852000
  • 67.95 is 0.05 km on from 67.9, so the ratio is 0.05 ÷ 0.1 = 0.5 (exactly halfway)
  • Latitude: 35.152348 + (35.152259 − 35.152348) × 0.5 = 35.1523035
  • Longitude: 138.853088 + (138.852000 − 138.853088) × 0.5 = 138.852544

The same calculation works in Excel, using the values of the rows on either side and the ratio.

This treats the road between two posts as a straight line. In the sample, adjacent points are about 99 to 101 m apart (calculated from the sample). Over 100 m, even on curves, the error is unlikely to be large, but if you need accuracy to a few metres, check on site or against detailed drawings.

Things to watch when using it for work

  • Carriageways: kilometer post numbers are the same on both carriageways. The sample points are on the centre line, so record which side separately. What the numbers mean is explained in "What is an expressway kilometer post?".
  • Date of the data: extensions or realignments of a route can change kilometer post numbers. Note what date your data is from.
  • Credits: background maps and public data you build on each have their own rules for crediting. Check them before using them in reports or on screens.
  • National roads: for national roads managed by the state, the government publishes positions every 1 km. How to look them up is in "How to find a kilometer post's latitude and longitude".

FAQ

Q. Is QGIS free?

Yes. QGIS is open-source map software that anyone can download and use for free, on Windows or Mac.

Q. Can Excel alone show it on a map?

Excel alone can't easily show coordinates as points on a map. The easy route is to do the calculation in Excel and the display in QGIS or Google My Maps.

Q. Where can I get a kilometer post CSV?

For national roads, the government publishes the data. For expressways, Infra Intelligence has data giving the latitude and longitude of kilometer posts every 100 m. The Shin-Tomei Expressway sample is free to download.


To use kilometer posts on a map Infra Intelligence has expressway kilometer posts listed with latitude and longitude every 100 m. The Shin-Tomei Expressway sample (CSV) is free to download, so you can try the steps in this article straight away. → Kilometer Post Data

Last checked: 11 November 2026

References (in Japanese)

Contact