Skip to main content

Gilles & Michiel De Mey

The importance of accurate Geospatial visualization

How many people live within a 5 minute walk from a bus stop?

A seemingly simple question, yet one that requires a bit more thought and consideration as well as processing power. Let’s try and visualize our solution to get a better understanding of the problems we might face when trying to provide our solution.

The naive method

Taking into account that the average person’s walking speed is around 4 to 5km/h. If my math adds up (distance = speed x time), the average person can walk up to 375m = (5m/60) x 4500m/s in 5 minutes.

So let’s draw a circle with a radius of 375m around a bus stop in Ghent.

Naive method

Theoretically, everyone living inside of the circle should be able to reach the bus stop within a 5 minute walk.

This is in fact how “De Lijn” — the local bus operator — decided to calculate their coverage map for Antwerp as you can see on Open Data Antwerpen.

If we visualize this method on top of Ghent, it will look like this.

Naive method overlayed on top of Ghent

At first glance, this looks great, everyone living in the city has a bus stop within a 5-minute walking distance.

In practice however, we will see that this method of coverage calculation is far from accurate.

Where it fails

Let’s examine a realistic scenario.

Scenario

Assume you live on “Coupure Rechts” and want to take the closest bus stop at “Bijlokevest”. The fastest way to the bus stop would be to go in a straight line. Unfortunately, you cannot simply swim across the canal, instead forcing you to take the nearest bridge, losing precious time taking the long way around.

As you can probably guess, the walk to the bus stop might take quite a bit longer than 5 minutes.

More accurate method

So we talked about the naive method — which is simply drawing a circle with a specific radius around a geospatial point — but what would a realistic representation look like?

For these types of reachability problems it’s best to look at isochrones to visualize the actual reachability. In short, an isochrone is really just an isoline for travel time.

Under the hood, we will be using a routing engine with the capability to calculate travel times from point A to point B using a shortest path tree (SPT) algorithm. We then create an alpha shape (concave hull) to create a polygon to visually represent reachability.

Accurate Isochrone vs Naive method

As we can see from the comparison image, the isochrone generated from the walking distance calculation gives a much more accurate visualization of the actual reachability of that specific bus stop. It correctly visualizes that “Coupure Rechts” is not reachable within the defined 5-minute walking distance, nor any other streets at the other side of the canal except for the very few houses across to the bridge.

Final thoughts

If we overlay both the naive method and the more accurate isochrones method on top of Ghent we can clearly see a difference in total coverage.

Furthermore, reachability gaps start to show within the city. This is exactly the kind of visualization we want to see since it now allows you to focus on those gaps which allows urban planners to optimize their overall service and bring customer satisfaction in terms of reachability to the next level.

There are many optimizations that can be made for the isochrone visualization, such as overlaying population density and filtering landmass and non-habitable areas to make a better informed decision on urban planning but I believe that this is a great start towards a more accurate visualization of reachability.

Furthermore, using isochrones does not only improve reachability problems on a micro scale, but on a macro scale as well. Frank Rowe has a great article on this topic as well.


Technical information

If you’re interested in how I created these visualizations, feel free to send me a Tweet @MichielDeMey.

Datasets

NameDescription
De Lijn Bus stops in BelgiumGeoset of all De Lijn bus stops in Belgium
Official borders of GhentUsed to filter bus stops for Ghent
OpenStreetMap dataset of BelgiumUsed by OSRM

Tools

NameDescription
OSRMModern C++ routing engine for shortest paths in road networks
Turf.jsAdvanced geospatial analysis
MapshaperTools for editing Shapefile, GeoJSON, TopoJSON and CSV files
MapboxMapping tools for developers