TechBuzzPro

Google Maps Links from Coordinates: How to Build

· 6 min read · Apps & Browsers

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

You create a Google Maps link from coordinates by putting the latitude and longitude into the official Maps URL pattern: https://www.google.com/maps?q=LAT,LNG. Replace LAT and LNG with your decimal values (latitude first, longitude second, comma between them, no spaces). That single link opens a pin at that exact spot in any browser and on any phone. The same idea works for a shareable link, a directions link, or an embed, and you can build it by hand in a text editor without any API key.

What You'll Need

  • The latitude and longitude of the place, in decimal degrees (for example 40.6892, -74.0445). Degrees/minutes/seconds values must be converted first.
  • A text editor, notes app, or spreadsheet to assemble and test the URL.
  • A browser to check the link before you share it.
  • Optionally, a Google account if you want to save the pin to a list or use the Share button inside Maps.

Step-by-Step

  1. Get decimal coordinates. In Google Maps, right-click (or long-press on mobile) the exact spot and click the numbers that appear at the top of the menu; they copy to your clipboard. On a phone, drop a pin by long-pressing, then tap the pin and scroll the sheet to see the coordinates. The first number is latitude, the second is longitude.
  2. Check the order and signs. Latitude runs from -90 to 90 and comes first. Longitude runs from -180 to 180 and comes second. Negative latitude means south of the equator; negative longitude means west of the prime meridian. Swapping them is the most common reason a link lands in the wrong country.
  3. Build the basic link. Type https://www.google.com/maps?q= and paste the coordinates straight after it, for example https://www.google.com/maps?q=40.6892,-74.0445. Keep the comma and remove any spaces. This is the shortest reliable pattern and works on desktop and mobile browsers.
  4. Add a label if you want one. To show a name on the pin, put the label in parentheses after the coordinates: https://www.google.com/maps?q=40.6892,-74.0445(Statue of Liberty). URL-encode spaces as %20 if the link will be pasted into HTML or a chat app that breaks on spaces.
  5. Make a directions link. Use https://www.google.com/maps/dir/?api=1&destination=40.6892,-74.0445. Add &origin= with an address or coordinates if you want a fixed starting point. This opens the Directions panel with the destination already filled in.
  6. Test the link in a private browser window. Paste it into the address bar and confirm the pin sits where you expect. Zoom in to street level; a misplaced decimal point can put the pin hundreds of metres away. On mobile, also tap the link from a messaging app to confirm it opens the Maps app rather than a browser page.
  7. Shorten or share it. If the raw URL is too long for a bio or a printed sign, open the pin in Google Maps, use the Share button, and copy the short link Google generates. That link is tied to the place, not to your account, and works for anyone.
  8. Embed it on a web page if needed. On the Maps website, open the pin, choose Share, then the embed option, and copy the iframe code. The embed uses a different URL format from the plain ?q= link, so do not hand-edit the iframe source unless you are comfortable with HTML.

Common Mistakes

  • Reversing latitude and longitude. The link still opens, but in the wrong hemisphere. Always check that the first number is between -90 and 90.
  • Leaving spaces after the comma. Browsers often cope, but chat apps and CMS fields may cut the link at the space. Use 40.6892,-74.0445, not 40.6892, -74.0445.
  • Using degrees/minutes/seconds. The ?q= pattern expects decimal degrees. Convert 40°41'21"N to 40.6892 before building the URL.
  • Dropping the minus sign. A longitude of 74.0445 is in China; -74.0445 is in New York. The sign is part of the coordinate.
  • Assuming a shortened link is permanent. Links generated by the Share button can change if the underlying place data changes. For archival use, keep the raw coordinate URL as well.
  • Pasting an embed iframe URL into a chat. The embed URL is meant for a web page, not for messaging apps; it may open a blank frame or a consent screen.

Tips

  • Use the ?q= pattern for a simple pin, /dir/?api=1 for directions, and the Share > Embed code for websites. Each has a different job.
  • If you are building many links, keep a spreadsheet with columns for name, latitude, longitude, and the finished URL formula so you can fill down.
  • For a link that opens in satellite view, add &t=k to the basic URL. This is a display hint, not a guarantee, and Google can change it.
  • Test links on both a desktop browser and a phone before printing them on signage or putting them in a QR code.
  • Store coordinates to at least five decimal places (about one metre) if precision matters; two decimal places is roughly a kilometre.

Troubleshooting

  • The link opens the Maps home page instead of a pin. The coordinate part is probably malformed. Check for a missing comma, a stray space, or a letter where a digit should be.
  • The pin is in the ocean or the wrong country. Latitude and longitude are swapped, or a minus sign is missing. Re-check the order and signs.
  • The link works on desktop but not on a phone. Some apps strip the query string. Use the Share button inside the Maps app to generate a mobile-friendly short link instead.
  • The embed shows a blank box. The iframe URL was edited or the page is blocking third-party frames. Re-copy the embed code from Maps rather than hand-editing it.
  • The pin is slightly off. Coordinates copied from a right-click are approximate at low zoom. Zoom in fully before copying, or use a known landmark's published coordinates.

Frequently Asked Questions

Can I create a Google Maps link without an API key?

Yes. The https://www.google.com/maps?q=LAT,LNG pattern is a plain URL and needs no key. API keys are only for embedding maps in apps and websites through the official APIs.

What format do the coordinates need to be in?

Decimal degrees, latitude first, longitude second, separated by a comma with no space, for example 51.5007,-0.1246. Degrees/minutes/seconds must be converted first.

Why does my link open in the browser instead of the Maps app?

On phones, the google.com/maps domain usually hands off to the installed Maps app, but some messaging apps open links in their own browser. Tapping the link from a browser address bar, or using the Share button inside Maps, is more reliable.

Can I link to a route rather than a single point?

Yes. Use the directions pattern with origin and destination parameters, for example https://www.google.com/maps/dir/?api=1&origin=51.5007,-0.1246&destination=51.5033,-0.1195. Both values can be coordinates or addresses.

Do these links work in other map apps?

No. The google.com/maps pattern is specific to Google Maps. Apple Maps and other apps use their own URL schemes, so a Google link will usually open in a browser on those devices.

How precise can a coordinate link be?

As precise as the numbers you supply. Six decimal places is roughly 10 centimetres, but the underlying map imagery and place data may not be that accurate, so treat very long decimals as a best effort.