Mapcodes also have to be combined with some context. In most places it's just the country name, but in large countries it also requires the state (or equivalent).
So if you go to the interactive map on the mapcodes site, there's a little link marked context and you need to change that to Ireland. Results in this:
So, they want to throw out the old coordinates system (which was absolute location regardless of any "context"), with a system that if you loose the context information, or misinterpret it, you can wind up in a very wrong location?
I've written a fairly extensive GPS library for some embedded device projects in the past, and I can attest to the computer not caring about the long coordinate system, they are just floating points really.
The shorter MapCodes are within the context of a specific country, but the "I have a MapCode" box defaults to the Netherlands. If you change that to Ireland, it's 0C.T4 is in the middle of a park near Dublin.
Actually it's that those MapCodes are incomplete. They're missing the country/state designation. If you look up "Ireland 0C.T4" or "US-AK 0C.T4" you should get the correct results.
I'll cite a .doc file here, it's also available on the Developers page:
> 1. Codes only need to be accurate enough for public, every-day use. At the human scale, when you are within a few meters of a destination, you are “there”.
> 4. People live within a “country context”. Addresses seldom include a country name. Unless clearly stated otherwise, they can safely be assumed to be in “this” country. Codes that are known to be within a particular territory can be designed to be much shorter. For example, every location in The Netherlands can be uniquely specified with at most 6 letters . Even in a large country like India, at most 7 letters are needed.
> 6. Short codes are reserved for areas where the population density is high. For example, every locations in The Netherlands can be represented by a unique 6-letter mapcode. However, the majority of the population is concentrated in a dozen urban areas totaling less than 3,000 km2 (1,800 square miles). By reserving the 5-letter mapcodes for these areas, half the population of The Netherlands can be found using 5-letter codes. On average, mapcodes for relevant locations in The Netherlands are thus closer to 5 letters than to 6 letters. In fact, a significant percentage of the population can be found in 100 km2 of city centers, which can be covered by 4-letter mapcodes.
> Based on these ideas, we envisaged a system that would work anywhere on Earth, and would (on average) provide the shortest possible codes to everybody. By using massive amounts of data gathered over the past 30 years by mapping company Tele Atlas (merged into the TomTom Group in 2008), a data table was constructed ...
> Finally, on top of any and all national mapcodes a location may have, it also always has a 9-letter, context-less map code.
> To understand mapcode accuracy, you need to understand that a specific mapcode defines a specific location X, but represents all the locations within a certain distance meters of X. For example, the Dutch mapcode “49.4V” decodes into coordinate 52.376514, 4.908542. This does not only mean that coordinate 52.376514,4.908542 can be represented by mapcode 49.4V, but that all coordinates within roughly 5 meters of that coordinate can also be represented by mapcode 49.4V.
(it continues to describe "high-precision mapcodes")
Why did they make it?
> The mapcode system was revived and worked out in 2006 when TomTom decided to expand their operations to countries like India and China. It was difficult to sell navigation devices in these countries, among other things because a significant part of the population lives without address, lacking not just house numbers but often even street names, which often made it hard or even impossible to enter a destination. It was thought that the introduction of a simple and ubiquitous system for representing locations (and hence destinations) would in due time make navigation devices as welcome there as anywhere else.
> Actually it's that those MapCodes are incomplete. They're missing the country/state designation. If you look up "Ireland 0C.T4" or "US-AK 0C.T4" you should get the correct results.
Imagine if a URL resolved to different addresses in each country you were in. Would that be a better system than what we have now, or a worse one? I think it would self-evidently be worse.
I'm surprised they didn't make mapcodes a globally-unique identifier.
Globally-unique identifiers make sense on the web, where "going" to a website being served from the other side of the world is as easy as one served from across the street.
That's not true for navigation in the physical world. If you're sitting in Nebraska, how often do you have to navigate to a location in Mongolia? Approximately never! Map codes are optimized for the common case, where you want to go to a location that's nearby.
In fact, it's even more clever than that, since it defines "nearby" as a political unit. Borders may be artificial, but they're real, and crossing them has practical implications. If you're planning to buy something in another jurisdiction, there might be tax implications. You may need your passport to cross the border. You may not speak the language of that area. All of this means that having the political unit as a human-readable part of the map code is useful.
Finally, consider that some URLs do resolve differently depending on where you are. They're called relative URLs. They're very handy and very common. I'd guess that the vast majority of URLs on the web are relative. MapCodes work the same way. The code "Ireland 0C.T4" is globally unique. If you're already in Ireland, you can omit the territory, much as you would omit the country when inviting a friend to your house for dinner.
For cases where you really do have to travel to the other side of the planet, is it really so onerous to specify "Mongolia 0C.t4"?
They did, it just doesn't suit the purpose they had: quick entry into GPS systems; it's true URLs or QR codes would work too, though nothing's stopping such a resolver service from popping up, except of course that non-phone GPS systems probably don't have cameras yet.
> Finally, on top of any and all national mapcodes a location may have, it also always has a 9-letter, context-less map code.
But that's too long to use every day... It would be like requiring all streets to have globally unique names. Because they're qualified by location, you could, if you wanted to, enumerate all matches in order of distance, and in 90% of cases, that would be the location you're looking for. Better here, since many cities will have the same street names in multiple places ;-)
Phone numbers are very similar. They have a short and long representation and the short is often duplicated in different countries. Imperfect but a very human solution: works because it's easy and 99% of the time we call the right number.
Any reference to how they came up with any given Map Code? Like how 52.508957, 4.769173 became US-AK 81.J4W?
I see they have come up with them for all locations, but how can I take a given coordinate and surmise it's MapCode, or the reverse (without their API or website)?
> A conversion need not just be based on formulae. A respectable amount of data may be used as part of an algorithm.
Which is why when you go to the downloads page, you'll find sources in C, JavaScript and Java, but they all include "data tables".
There are a few other restrictions, though it's somewhat unclear how relevant they are here without inspecting the tables closer:
> One such limit is to use only rectangular areas in our definitions. Another is to limit the size of the “context” data table to about 16,000 records.
So it's not something you can do without the data tables. And for ease of use, they have disambiguation routines for country/state input.
Hmm, I just took a look at their Java SDK... (clearly just sample code, but intended for embedding into your project to get going quickly)
They make a lot of assumptions, and a lot of hard-coded values.
For example, they seem to have lots of city names and country names hard-coded into a giant String array. ISO country codes are hard-coded (probably a safe assumption so-long as new countries are not added), many "magic numbers".
Overall, I think these things are acceptable... but I don't necessarily like relying on the assumptions that "things today should be the same tomorrow". With plain old coordinates, my software would never care if the ISO added new country codes or what-have-you.
I see they intent this to be mainly for human consumption -- but is US-AK 81.J4W really any more memorable than 52.508957, 4.769173? I'd probably end up writing both down personally, which means the coordinates would suit me just fine.
81.JW4 is a lot easier to tell someone over the phone or transcribe from a business card or billboard, and it's pretty unlikely that the US-AK part would be ambiguous in those contexts. And if it is, a simple "which 81.JW4 did you mean?" would probably disambiguate pretty effectively.
It's much harder to hear "eight" and mistake it for another number, but "P" and "T" are commonly confused (presumably people would read it as "Papa" and "Tango" to avoid confusion). What about "O" and "0", "I", "l", "1", etc. Now we have ambiguities that may not be interpreted correctly, even with phonetics.
FWIW they left O and I out of the list of possible letters for just that reason.
One could argue either way about fully-numeric versus alphanumeric codes. They're a bit harder to communicate but more than three times shorter, on average.
Edit: math is hard. One and a half times shorter, on average.
For example, they have 0C.T4 and they say it's in Ireland and appears to be some bench in the picture.
However, if you use that MapCode, you will see it's the middle of some river in Amsterdam.
0C.T4 == 52.369764, 4.868898
Another:
81.J4W They seem to claim it's in Alaska, appears to be some road. However, it's another river in Amsterdam.
81.J4W == 52.508957, 4.769173