Skip to content

How to make a QR code for a location: Google Maps, Apple Maps or geo:

Make a QR code that opens a map: Google Maps and Apple Maps link formats, the geo: URI, which one opens what on iPhone and Android, and a smart link for both.

By Shortlen Editorial Updated 8 min read

The short answerFor a location QR code that works on almost every phone, encode a Google Maps link such as https://www.google.com/maps/search/?api=1&query=48.8584,2.2945: it opens the Maps app when installed and a browser otherwise. Apple Maps links suit iPhone-only audiences, and geo: codes hold raw coordinates for any map app. A smart link can send iPhones to Apple Maps and everyone else to Google Maps.

Key takeaways

  • Google's cross-platform Maps URL opens the Google Maps app on Android and iOS when it is installed, and a browser everywhere else.
  • Apple's unified Maps URLs (iOS 18.4 and later) open Apple Maps on Apple devices; Apple's documentation does not cover other platforms.
  • A geo: code holds latitude then longitude; Android hands it to a map app, and Apple has said the iPhone Camera opens Maps for it, but test on current phones.
  • Add a place ID when you mean a business, so the map opens the listing with hours and reviews, not just a pin.
  • Use a dynamic code for events and pop-ups, so a venue change does not mean a reprint.

A location QR code saves people from typing an address into a map app: they scan and the map opens on the right spot. There are three ways to build one, and they behave differently on iPhone and Android. This guide shows the formats, what each opens on which device, and when a smart link that picks the right map app is worth it.

OptionExampleAndroidiPhoneComputer
Google Maps URLhttps://www.google.com/maps/search/?api=1&query=...Google Maps app, or a browser if the app is missing or disabledGoogle Maps app if installed, otherwise a browserGoogle Maps in a browser
Apple Maps URLhttps://maps.apple.com/place?coordinate=...Not covered by Apple’s documentation: testApple Maps (unified URLs from iOS 18.4)Apple Maps on a Mac with macOS 15.4 or later; other computers not covered
geo: URIgeo:48.8584,2.2945Handed to an installed map appApple said in 2017 the Camera opens Maps with a pin: test on current iOSNot covered by these sources

The Google column comes from Google’s Maps URLs documentation, the Apple column from Apple’s “Adopting unified Maps URLs” page and its iOS 11 developer talk, and the Android geo: row from Android’s developer guide to common intents. Where a source does not cover a case, the table says so.

Our recommendation: for a mixed audience, use a Google Maps URL. Google’s own page recommends its cross-platform URL, and it is the only option documented to open something useful on every device. Use a smart link if you want iPhone users in Apple Maps.

Google’s cross-platform format for a place is:

https://www.google.com/maps/search/?api=1&query=<address or coordinates>

Examples:

  • Coordinates: https://www.google.com/maps/search/?api=1&query=48.8584,2.2945
  • Address: https://www.google.com/maps/search/?api=1&query=1600+Amphitheatre+Parkway,+Mountain+View,+CA
  • A specific business: add &query_place_id= and the place ID. Google says the place ID is the best guarantee of linking to the right place, and that query is still required and used only if the place ID cannot be found.

For directions instead of a pin, the format is:

https://www.google.com/maps/dir/?api=1&destination=<address or coordinates>

Google’s page describes how these URLs behave: on Android, the URL launches the Maps app when it is installed and active, or a browser otherwise; on iOS, the app if installed, or a browser if not; on any other device, a browser. Spaces and special characters in addresses must be URL-encoded; our URL encoder and decoder does it for you.

Apple introduced unified Maps URLs that work across its devices from iOS 18.4, macOS 15.4 and watchOS 11.4. The useful ones for a QR code:

  • A pin at coordinates: https://maps.apple.com/place?coordinate=40.779092,-73.962932
  • A pin with your own label: add &name=Main%20Entrance
  • An address: https://maps.apple.com/place?address=1000%20Fifth%20Ave,%20NY,NY,10028%20United%20States
  • Directions: https://maps.apple.com/directions?destination=<address or coordinates>&mode=walking (modes: driving, walking, transit, cycling)

Apple’s page describes Apple platforms only and does not say what Android phones do with these links, so do not use an Apple Maps link alone for a general audience.

How does a geo: QR code work?

The geo URI is a standard, RFC 5870, published in 2010. Its basic form is geo: followed by latitude, longitude and optionally altitude, such as geo:48.2010,16.3695,183. Coordinates use WGS-84, the system GPS devices use, unless stated otherwise. The RFC warns that swapping latitude and longitude is a common mistake; latitude always comes first, and south and west are negative.

The ZXing barcode project, whose formats phone scanners follow, says a reader might open a local mapping application to the location, or a web mapping service. Android’s developer guide lists the formats map apps accept:

  • geo:47.6,-122.3 shows the map at that point.
  • geo:47.6,-122.3?z=11 adds a zoom level, from 1 (the whole Earth) to 23.
  • geo:0,0?q=34.99,-106.61(Treasure) shows a labeled pin.
  • geo:0,0?q=1600+Amphitheatre+Parkway%2C+CA searches for an address.

On the iPhone, Apple’s 2017 talk introducing QR scanning in the Camera showed a geo code: tapping the notification opened the Maps app with a pin dropped at the location. That talk is from iOS 11, and we found no current Apple page confirming it, so test before you print.

A geo: code needs no website and no internet connection to decode. Its weakness is that it is static and uncountable: you cannot change it after printing or see how many people scanned.

One link opening a mobile app or a web fallback
A map link opens the app when it is installed and the browser when it is not.

Can one code open the right map app on every phone?

Yes, with smart rules. In BN Shortener you can add the rule directly to a dynamic QR code (or to a short link): if the operating system is iOS, send scans to the Apple Maps URL; everyone else gets the Google Maps URL, the main destination.

BN Shortener’s smart links support exactly this: rules can match on device type, operating system, country, language and more, and the first matching rule wins; developers can also try a pretend visitor with the API’s rule tester before printing. Smart rules are part of Pro ($15 a month). Our guide to smart links by device and country shows the setup in detail.

One short link branching to mobile, desktop and regional destinations
One printed code: iPhones to Apple Maps, everyone else to Google Maps.

How do you find a place ID?

A place ID tells the map exactly which business you mean, so people land on the listing with its name, hours and reviews, rather than a bare pin that might sit on the building next door.

  • Google: the Places API documentation includes a Place ID Finder: search for the place and it shows the ID. Add it to the link as query_place_id=, and keep the query parameter as well, since Google uses it if the ID cannot be found.
  • Apple: Apple’s unified Maps URLs accept a place-id parameter, for example https://maps.apple.com/place?place-id=I521E602783BA9605 (the Metropolitan Museum of Art in Apple’s own example), and Apple’s documentation points to a Place ID Lookup page on its developer site to find one.

For a spot that is not a listed business (a side entrance, a meeting point, a field at a festival), use coordinates instead, and add a label: name= in an Apple Maps link, or a label in brackets in an Android geo: code.

When should a location code be dynamic?

UseStatic or dynamicWhy
Shop window, permanent addressEitherThe place will not move; dynamic adds scan counts
Event, festival, conferenceDynamicVenues and entrances change; switch to an “event over” page afterwards
Pop-up, market stall, food truckDynamicUpdate the location each week without new signs
Delivery or rental instructionsDynamicPoint to the exact entrance; fix it if drivers keep missing it
Trailhead, outdoor sign with no signalStatic geo:Decodes offline; the map app may have offline maps

With a dynamic code the printed pattern holds a short address, and you change where it leads in the dashboard. The static vs dynamic QR codes guide explains the trade-off.

How do you make a location QR code, step by step?

  1. Find the exact spot. Drop a pin on the entrance you want people to reach, not the center of the building or the car park, and copy its coordinates. For a business with a map listing, find its place ID so the listing opens.
  2. Build the link. Use the Google Maps format for a general audience; add an Apple Maps link too if you will use a smart link.
  3. Test the link on an iPhone and an Android phone, with and without the Google Maps app.
  4. Create the code. Paste the link into our free QR code generator for a static code, or create a dynamic code in BN Shortener so you can change it and count scans. BN’s QR builder also has a Location type that takes coordinates or an address and opens maps.
  5. Add a call to action and the address in text, such as “Scan for directions: 12 Harbor Road, back entrance”.
  6. Size and test the print. At least 2 x 2 cm and about 1 cm wider per 10 cm of distance; a sign read from across a car park needs to be large. See the QR code size guide.

Ideas for events and shops

  • Events: put a directions code on tickets and confirmation emails, pointing to the entrance or the parking gate. After the event, switch the same code to photos or a feedback form.
  • Shops: a code on flyers and business cards that opens your map listing, so people also see opening hours. Add one at the till for “find our other branch”.
  • Deliveries and rentals: a code on the door sign or in the welcome pack that opens the exact entrance or the key box.
  • Multiple locations: one code per branch, or one smart link that sends visitors to the branch in their city.

Common mistakes with location codes

  • Latitude and longitude swapped. The pin lands in the ocean or another continent. Latitude always comes first.
  • Too few decimal places. Two decimals can be off by hundreds of meters; keep five or six for a doorway.
  • An address that matches several places. “Main Street 12” exists in many towns; include the city and country, or use a place ID.
  • A long link copied from the browser bar, which can carry map position and other parameters you did not mean to print. Build the link in Google’s documented cross-platform format instead.
  • An Apple-only link for a mixed audience, which Apple does not document for Android phones.
  • No address in text, which leaves people stuck if the scan fails.

Location QR code checklist

  • Coordinates point at the entrance, latitude first.
  • Google Maps link for mixed audiences; Apple-only links only behind a smart rule.
  • Place ID added for businesses.
  • Tested on iPhone and Android, with and without the Google Maps app.
  • Address printed in text beside the code.
  • Dynamic code for anything that might move.

Start free

You can make your first editable, trackable location codes today: BN Shortener’s free plan includes 5 dynamic QR codes, and smart rules come with Pro and Business. Start free at b1.lc, and see the QR code features for design options.

Sources

  1. Get started with Maps URLs, Google for Developers, undated. Checked 2026-10-23.
  2. Adopting unified Maps URLs, Apple Developer Documentation, undated. Checked 2026-10-23.
  3. Common intents: Maps, Android Developers, undated. Checked 2026-10-23.
  4. RFC 5870: A Uniform Resource Identifier for Geographic Locations ('geo' URI), IETF (RFC Editor), 2010-06. Checked 2026-10-23.
  5. QR Code Recognition on iOS 11, Apple Developer (video), 2017. Checked 2026-10-23.
  6. Barcode Contents: geo, ZXing project wiki (GitHub), undated. Checked 2026-10-23.

Questions people also ask

How do I make a QR code for a Google Maps location?

Build a Google Maps link with the cross-platform format, for example https://www.google.com/maps/search/?api=1&query= followed by the address or coordinates, test it on a phone, and paste it into a QR code generator. Add query_place_id for a business so the right listing opens.

Will a Google Maps QR code work on an iPhone?

Yes. Google's documentation says the cross-platform URL opens the Google Maps app on iOS if it is installed, and Google Maps in a browser if it is not. iPhone users without the app still see the place, in Safari.

What is a geo: QR code?

It is a code that holds coordinates in the geo URI format from RFC 5870, such as geo:48.8584,2.2945, latitude first. Android passes it to an installed map app. It needs no website, but behavior varies by scanner, so test it.

Can one QR code open Apple Maps on iPhone and Google Maps on Android?

Not with a fixed link, but smart rules can. In BN Shortener, add a rule directly to a dynamic QR code (or to a short link) that sends iOS visitors to an Apple Maps URL, and let everyone else fall through to a Google Maps URL.

How do I get exact coordinates for a location?

In Google Maps or Apple Maps, drop a pin on the exact spot, such as the entrance rather than the middle of the building, and copy the latitude and longitude it shows. Keep five or six decimal places and check that latitude comes first.

Should a location QR code be static or dynamic?

Static is fine for a permanent address, such as a shop that will not move. For events, pop-ups, deliveries or anything that might change, use a dynamic code so you can update the destination after printing and see how many people scanned.

Try it on your next link

The Free plan includes a custom domain, 5 dynamic QR codes, a bio page and click analytics. No credit card.