How to make a Map location QR code

A location QR code opens a map with a pin on the exact spot — a shop entrance, a car park, a trailhead, a pop-up stall. It saves people searching for an address that does not quite point to the door.

Updated · from 3 official sources · DRISH LABS

What the code contains

A QR code is text. For this kind, the text has to follow this exact pattern:

https://www.google.com/maps/search/?api=1&query=<latitude>%2C<longitude>

Filled in, it looks like this:

https://www.google.com/maps/search/?api=1&query=51.50135%2C-0.14189

What happens when someone scans it

It is an ordinary link, so every camera opens it: Google documents that this Maps URL opens the Google Maps app where it is installed, on Android and iOS, and a browser everywhere else. The shorter geo:latitude,longitude form (RFC 5870) is read by Android but is not documented for the iPhone camera, which is why the link is the safer payload.

Make one free

  1. Find the spot in a map app and copy its latitude and longitude.
  2. Build the link: https://www.google.com/maps/search/?api=1&query=LAT%2CLNG — with the comma written as %2C, as Google’s documentation requires.
  3. Open the QR Code Generator, leave it on Text, and paste the link.
  4. Download the code and scan it to check the pin lands where you meant.

Open the free QR code generator — it runs in your browser and uploads nothing.

So it works when it is printed

  • Latitude comes first, then longitude, in decimal degrees; south and west are negative (RFC 5870, WGS-84).
  • Five decimal places locate a spot to about a metre — enough for a door.
  • The api=1 parameter is required; without it Google ignores the rest of the link.
  • Scan the finished code with two different phones before you print a batch — it is the only test that counts.

Questions

geo: or a Google Maps link — which should I use?
The Google Maps URL, for a printed code. It works on every phone as a normal link; geo: is the standard (RFC 5870) and Android reads it, but how an iPhone camera handles it is not documented.
Will it open Apple Maps on an iPhone?
A Google Maps URL opens Google Maps if it is installed, otherwise the browser. If your audience is mostly on iPhone, an Apple Maps link (maps.apple.com) is the alternative.
How precise does the location need to be?
Five decimal places of latitude and longitude is about a metre, which is enough to put the pin on an entrance.

Sources

Requirements change without notice. Check the official source before you rely on a figure here.

QR Craft iconThe faster way

QR Craft

A QR code generator for Mac that adds your logo and checks it scans.

Not today? Get an email when QR Craft gets better
QR Craft on macOS