import React from 'react'; import type { Metadata } from 'next'; import GeolocationGenerator from './GeolocationGenerator'; import { MapPin, Shield, Zap, Smartphone, Navigation, Map, Download, Share2 } from 'lucide-react'; import { QRCodeSVG } from 'qrcode.react'; import { ToolBreadcrumb } from '@/components/seo/BreadcrumbSchema'; import { RelatedTools } from '@/components/marketing/RelatedTools'; import sanitizeHtml from 'sanitize-html'; import { generateSoftwareAppSchema } from '@/lib/schema-utils'; // SEO Optimized Metadata export const metadata: Metadata = { title: { absolute: 'Location QR Code Generator - Maps & Directions, Free', }, description: 'Turn an address or GPS coordinates into a QR code. One scan opens directions in Google Maps or Apple Maps. For signage, flyers and event wayfinding. No signup.', keywords: ['location qr code', 'maps qr code', 'google maps qr generator', 'geolocation qr', 'coordinates qr code', 'standort qr code', 'google maps qr code erstellen', 'koordinaten qr code', 'wegbeschreibung qr code', 'maps qr code generator'], alternates: { canonical: 'https://www.qrmaster.net/tools/geolocation-qr-code', }, openGraph: { title: 'Location QR Code Generator - Maps & Directions, Free', description: 'One scan opens directions in Google Maps or Apple Maps. For signage and wayfinding.', type: 'website', url: 'https://www.qrmaster.net/tools/geolocation-qr-code', images: [{ url: '/og-geolocation-generator.png', width: 1200, height: 630 }], }, twitter: { card: 'summary_large_image', title: 'Location QR Code Generator - Maps & Directions, Free', description: 'One scan opens directions in Google Maps or Apple Maps. For signage and wayfinding.', }, robots: { index: true, follow: true, }, }; // Single source of truth for FAQs: rendered on the page AND emitted as // FAQPage schema. Google requires every marked-up Q&A to be visible to the // user on the source page, so never add one without the other. const faqItems = [ { question: 'Which map app does it open?', answer: 'Our generator creates a universal Google Maps link. On most devices, this will open the Google Maps app if installed, or the browser version if not. It is the most compatible method.', }, { question: 'How do I find my Latitude and Longitude?', answer: 'On Google Maps desktop: Right-click any spot on the map. The first item in the menu is the coordinates. Click to copy them.', }, { question: 'Does it work offline?', answer: 'The QR code itself can be scanned offline, but the user will likely need an internet connection to load the map and get directions.', }, { question: 'Can I use an address instead?', answer: 'For precise results, we use coordinates. However, you can use our URL Generator and paste a link to your Google Maps address search result if you prefer.', }, { question: 'Is it free?', answer: 'Yes, generating this location QR code is completely free and requires no signup.', }, { question: 'Why not just use an address?', answer: 'Addresses can be ambiguous or cover large areas (like a park or stadium). Coordinates point to an exact geographic spot, ensuring visitors find the specific meeting point or parking entrance.', }, { question: 'Does it work on Apple Maps?', answer: 'Yes. While the underlying link is a Google Maps link, iOS devices usually handle these gracefully, either opening them in the Google Maps app (if installed) or the browser, where Apple Maps can often intercept directions.', }, { question: 'Can I track who scanned it?', answer: 'Not with this static tool. If you need scan analytics (e.g., how many people scanned your storefront QR), you should use our Dynamic QR Code service.', }, ]; // JSON-LD Structured Data const jsonLd = { '@context': 'https://schema.org', '@graph': [ generateSoftwareAppSchema( 'Geolocation QR Code Generator', 'Generate QR codes that open specific geographic coordinates in map applications.', '/og-geolocation-generator.png' ), { '@type': 'HowTo', name: 'How to Create a Location QR Code', description: 'Create a QR code that points to a specific map location.', step: [ { '@type': 'HowToStep', position: 1, name: 'Get Coordinates', text: 'Find the Latitude and Longitude of your location (e.g., from Google Maps).', }, { '@type': 'HowToStep', position: 2, name: 'Enter Data', text: 'Paste the coordinates into the generator.', }, { '@type': 'HowToStep', position: 3, name: 'Customize', text: 'Choose a color and style for your map QR code.', }, { '@type': 'HowToStep', position: 4, name: 'Download', text: 'Save your QR code as a high-quality image.', }, { '@type': 'HowToStep', position: 5, name: 'Share', text: 'Place it on invitations, signs, or your website.', }, ], totalTime: 'PT45S', }, { '@type': 'FAQPage', '@id': 'https://www.qrmaster.net/tools/geolocation-qr-code#faq', mainEntity: faqItems.map((item) => ({ '@type': 'Question', name: item.question, acceptedAnswer: { '@type': 'Answer', text: item.answer.replace(/<[^>]+>/g, ''), }, })), }, ], }; export default function GeolocationQRCodePage() { return ( <>