Technology 7 min read

How to Make a QR Code That Opens Turn-by-Turn Directions

By Arvind Sharma Published 2026-11-29 Updated 2026-11-29
Arvind Sharma — Founder, QRPress QR Code GeneratorArvind built QRPress to give small businesses free, print-ready QR codes without scan caps, ads, or expiry. He writes guides focused on practical deployment — payments, printing, and shop-level security.

A directions QR code is a location code with a different URL. Instead of dropping a pin, it opens a route to the destination. The difference between a code that sends visitors to the front door and one that sends drivers to the service gate is usually the destination string, the travel mode, and whether the link asks for navigation or just a map. All three are controllable, and none of them require an API key.

Location Link vs Directions Link

A search link answers the question where are you. A directions link answers the question how do I get there. They use different Google Maps endpoints: /maps/search/ for a pin, /maps/dir/ for a route.

The directions endpoint does not need an origin. If you omit it, Google uses the device's current location, which is exactly what a visitor standing in a car park wants. If you include an origin, the route is calculated from that fixed point, which is useful for a shuttle stop or a venue gate but wrong for everyone else.

Adding dir_action=navigate asks Google to start turn-by-turn navigation when the origin is the device location. Google ignores the parameter on products and routes where navigation is unavailable, so treat it as a request rather than a guarantee. For most printed signs, a route preview is enough and is less jarring than a voice that starts talking the moment the code is scanned.

The Google Maps Directions URL

The documented format is https://www.google.com/maps/dir/?api=1&destination=YOUR+ENCODED+DESTINATION. Google's Maps URLs documentation lists the parameters and their limits.

ParameterRequiredAccepted valuesNotes
apiYes1Without it, all other parameters are ignored
destinationRecommendedAddress, place name, or lat,lonURL-encode it
originNoAddress, place name, or lat,lonDefaults to device location
travelmodeNodriving, walking, bicycling, two-wheeler, transitDefaults to the most relevant mode
dir_actionNonavigateStarts navigation where supported
waypointsNoPlaces separated by a pipeUp to 3 on mobile browsers, 9 elsewhere
avoidNoferries, highways, tollsComma-separated

A driving link for a venue looks like this: https://www.google.com/maps/dir/?api=1&destination=12.9716%2C77.5946&travelmode=driving. A walking link swaps travelmode for walking. A transit link uses transit and is the one mode where a fixed origin is often more accurate than the device location, because transit routes depend on which station the rider starts from.

Waypoints are separated by a pipe, encoded as %7C. Mobile browsers support up to three; other platforms support up to nine. Do not rely on waypoints for a critical route: Google says the parameter is ignored on products that do not support it. If the route must pass a specific checkpoint, print the checkpoint as a second code or state it in words.

Apple Maps for iPhone Visitors

Apple Maps has its own URL format: https://maps.apple.com/?daddr=YOUR+DESTINATION&dirflg=d. Only daddr is required. The dirflg value selects the mode: d for driving, w for walking, r for transit. Apple documents the parameters in its Map Links reference.

Use an Apple Maps link when the audience is iPhone-only and you want the native app. Do not use one on a sign that Android users will scan: Android has no Apple Maps app, so the link falls back to a browser and a web map, which is a worse experience than the Google link.

A geo: URI such as geo:12.9716,77.5946 is the neutral option. It follows RFC 5870 and lets the phone choose its default map app, but it opens a picker or a bare pin rather than a business listing. For a mixed audience, a Google Maps URL is the safer default because Google Maps is available on both platforms.

Wayfinding Design That Works

The code is only half of the sign. The other half is the instruction next to it. Scan for directions to the main entrance is clearer than a bare QR square, and it sets the expectation that the scan will open a map rather than a menu.

Size the code for the distance at which it is read. The working rule of thumb is one unit of width per ten units of distance, so a sign read from 3 metres needs a code about 30 cm wide. Place it at a decision point, at roughly eye level, and keep it out of direct glare. A code flat on a glass door reflects the sky; a code on a matte panel at 1.2 to 1.5 metres does not.

Outdoor codes should use error correction level Q or H, a clear four-module quiet zone, and a matte laminate. If the sign is at a venue with several entrances, print one code per entrance and point each one at the correct gate. A single code that sends everyone to the main gate creates a queue at the wrong door.

Test the Route, Not Just the Scan

A scan test proves the code is readable. It does not prove the route is correct. Test the route from a nearby street and from a distant one, because Google may choose a different approach road at different distances.

  1. Scan from 200 metres away and confirm the route arrives at the correct entrance.
  2. Scan from 20 kilometres away and confirm the route does not send drivers through a closed gate or a residential lane.
  3. Switch to walking and transit and confirm those modes also land at the entrance.
  4. Open the link in a mobile browser as well as the Maps app; the two can behave differently.
  5. Drive the final turn yourself before the print run.

If the destination is a new building that Google has not mapped, a coordinates link is more reliable than an address. If the business has a listing, add the Place ID so the route targets the listing rather than a street number. The location QR guide covers the payload choices in more detail.

Frequently Asked Questions

What is the difference between a directions QR code and a location QR code?

A location code opens a pin or a business listing. A directions code opens a route to the destination and can request turn-by-turn navigation with dir_action=navigate.

Can a QR code open Google Maps navigation automatically?

It can request it with dir_action=navigate, but Google ignores the parameter where navigation is unavailable. The scan opens a route preview when the origin is not the device location.

Should I include an origin in the directions URL?

Usually no. Omitting origin lets Google start from the scanner's current location. Include it only when the route must start at a fixed point, such as a shuttle stop.

How many waypoints can a Google Maps directions URL hold?

Up to three on mobile browsers and up to nine on other platforms. Waypoints are not supported everywhere and may be ignored, so do not depend on them for a critical route.

Do directions QR codes work on iPhone and Android?

Yes, if you use a cross-platform Google Maps URL. Apple Maps links only work well on iOS, and geo: URIs open the phone's default map app rather than a specific listing.

Create Your QR Code Instantly

Create a directions QR code from a tested Google or Apple Maps link. Use our secure, no-registration static systems or spin up a dynamic tracker campaign in seconds.

Create Directions QR Code