• Jilles van Gurp
  • April 19, 2024

The dark art of aligning indoor and outdoor maps

In setting up a high precision positioning system recently with one of our partners, we noticed something odd. We got some really precise measurements of a beacon moving through a building. However, the path the beacon followed went through a wall. Our map was obviously wrong! Of course this is not the first time we have encountered issues like this but we think it’s important to make people aware that this can be an issue and that they understand why that is an issue. And finally, we of course also provide a way to address the issues.

About indoor mapping

At FORMATION we provide hybrid indoor and outdoor maps. We carefully position our indoor maps for buildings on top of the outdoor map by rotating and scaling the bitmap of the indoor map until the walls align with the underlying building polygon. This is a process that is usually referred to as georeferencing.

Getting good indoor maps is tricky. Usually we get these in the form of architectural drawings, fire escape plans, and similar sources of maps. These maps are not very usable for the general public as there is a lot of clutter on the map depending on the intended use of the map. However, our designers can usually produce a nicer map from this. The point of course is that both architectural drawings and fire escape plans are to scale and have to be very precise. In theory, if we precisely align those maps with buildings on the outdoor map, we should end up with a very accurate map.

If you’ve read our white paper from a few years ago on the Misconceptions of Mapping , you may recall the problem here: georefencing relies on the underlying map being accurate. And maps just are not that accurate.

Just how inaccurate are Maps?

To illustrate how inaccurate maps can be, we decided to do a little experiment. For this we used some of the most popular maps: Openstreet maps, Google Maps, Here Maps, and Apple maps to look up the exact coordinates for a few reference points. And then we calculated the distances between the reference points on these maps.

Ahoy! Berlin NW Building Corner in Berlin

Ahoy Berlin is the coworking space where FORMATION is currently based. As a reference point, we simply picked the north west corner of the building. Each of the maps have a building outline for the building so this simply used the map UI to figure out the coordinate of that corner.

Provider 1PointProvider 2PointDistance (meters)
Osm52.5415, 13.38982Google52.54151054, 13.389807531.44
Osm52.5415, 13.38982Here52.5415063, 13.38981820.71
Osm52.5415, 13.38982Apple52.541497, 13.3898220.36
Google52.54151054, 13.38980753Here52.5415063, 13.38981820.86
Google52.54151054, 13.38980753Apple52.541497, 13.3898221.8
Here52.5415063, 13.3898182Apple52.541497, 13.3898221.07

Review on geojson.io

Siegessäule Centroid

The Siegessäule (Victory Column) is a big monument in Berlin. It looks a bit like a map pin and it’s circular. So, I used the center as a reference point.

Provider 1PointProvider 2PointDistance (meters)
Osm52.5145, 13.35012Google52.51451225, 13.350100451.9
Osm52.5145, 13.35012Here52.51451451, 13.350097272.23
Osm52.5145, 13.35012Apple52.514524, 13.3500963.12
Google52.51451225, 13.35010045Here52.51451451, 13.350097270.33
Google52.51451225, 13.35010045Apple52.514524, 13.3500961.34
Here52.51451451, 13.35009727Apple52.514524, 13.3500961.06

Review on geojson.io

Galeria Kaufhof SW corner

Galeria Kaufhof is a popular warehouse close to another map pin shaped object, Berlin’s TV Tower. Since that is quite big and circular it’s a bit harder to pick a precise point. So, we settled for a corner of the nearby building instead which is the south west corner of the building.

Provider 1PointProvider 2PointDistance (meters)
Osm52.52185, 13.41171Google52.52184966, 13.411722340.84
Osm52.52185, 13.41171Here52.52184025, 13.411664053.29
Osm52.52185, 13.41171Apple52.521853, 13.4117180.64
Google52.52184966, 13.41172234Here52.52184025, 13.411664054.08
Google52.52184966, 13.41172234Apple52.521853, 13.4117180.47
Here52.52184025, 13.41166405Apple52.521853, 13.4117183.92

Review on geojson.io

Lessons learned

We only sampled a few points here and of course and our sampling wasn’t super precise either. But the pattern is very clear: the various providers disagree on where things are by up to a few meters. It’s not that the maps are wrong, it’s just that they have slightly different interpretations of where things are.

Why outdoor maps are so inaccurate

To create an outdoor map, map providers that exist today are using a wide variety of data. They use satellite imagery, they use photos taken from planes, and in some cases they may use information from government sources about where buildings and roads are. Additionally they make use of GPS samplings from phones or dedicated devices. Aligning these data sources with each other and with the standardized WGS 84 coordinate system is part of this and different map providers make different choices here. The core issue here is that this is not a very precise process.

First of all there is the issue that the world is not a perfect sphere. To counter that, there are various coordinate systems that try to model the world as an imperfect sphere using elipsoid curves. The most common standard that most people use these days for this is WGS 84 , which is the set of ellipsoids that smart phones use and satellite systems such as GPS, Galileo, etc. WGS 84 standardizes these curves using a few parameters in the form of high precision numbers. But of course this is a simplication. In practice you get a level of accuracy that matches the differences we have seen in our little experiment of up to a few meters.

A second issue is that map providers don’t use the same data. They each use a combination of sattelite and aearial photography, ground measurements (e.g. with cars and lidar), and in some cases manual measurements. Georeferencing that is not an exact science of course and you have to deal with parallax, perspective issues, lens distortions and other sources of small mistakes. Finally, they each use their own algorithms to figure out things like building outlines, roads, etc. Altogether, this adds up to these map providers disagreeing about where things are.

And finally, satellite positioning is not that precise either. GPS has an accuracy that is very dependent on satellite visibility and amount. Under the best of circumstances, you might get about five meters accuracy. But in dense cities without direct lines of sight, it can be worse than that.

It’s all relative

In the end, fixing the problem we had with our positioning partner was easy. We simply shifted our map by about 1.5 meter to align our mutual versions of the indoor map in the same way and suddenly the path made a lot more sense. Unfortunately it does mean that our indoor map does not align perfectly with the underlying outdoor map. But that is a small sacrifice as the more important thing is aligning indoor maps and the tracking system so people don’t crash into walls.

We hope to see improved collaboration between various map providers may lead to less disagreement between outdoor maps. The recent announcement by the Overture Maps foundation is an important step. It’s the first time that a group of companies works together on a broad data set that includes building outlines, and many other map features. Maybe, the other map providers might start agreeing more on where things are.

Providing a good hybrid indoor outdoor map is increasingly important as positioning systems are getting more accurate. GPS is more than 40 years old at this point. And some positioning systems are providing one or two orders of magnitude improvements over that. Going from 5 meters to less than 5 cm accuracy requires that we improve our maps. Most outdoor maps don’t even have features sized smaller than a few meters.