Tips for accommodations

Embed Google Maps on your website: how it works

By M. Moes · Published on 22 October 2026

Adding a Google Maps map to your website is quick: you copy an embed code from Google Maps and paste it into your site. For showing where your accommodation is, that works well. If you want to show the local area, you run into two things: the map also shows other accommodations, and you have to keep the tips up to date yourself.

How to embed Google Maps on your website

  1. Look up your location in Google Maps.
  2. Choose Share and open the Embed a map tab.
  3. Copy the HTML code Google shows. It is an iframe.
  4. Paste that code into the HTML of the page where the map should appear. Most website builders have a block for custom HTML.

The buttons in Google Maps may look different from what is described here. In that case, follow the instructions in Google's own help pages.

What such a map cannot do

The map also shows the other hotels, campsites and B&Bs nearby, with photos and reviews. A guest who is looking at your page and clicks on one is now on a competitor's page. You cannot switch that off, because Google decides what appears on the map.

The map is also not a tips guide. If you want to show restaurants, walking routes or days out, you have to add them yourself and keep them current. When a restaurant closes, it is still on your map.

A map that only shows the local area

A local area widget shows what guests look for: food, nature, culture and shops. With NearPin, other accommodations are never visible. You add the widget with one script tag and block places you do not want to show. You can try it free for 14 days.

Google Maps embed Google Maps map on website competitors local area

Frequently asked questions

How do I add Google Maps to my website?
Look up your location in Google Maps, choose Share and then Embed a map, and copy the code Google gives you. Paste that code into the HTML of the page where the map should appear.
Can I hide competitors from a Google Maps map?
No, not with a standard embed code. Google decides which places are visible, and those often include other accommodations.
What is the alternative?
A local area map that never shows other accommodations and keeps its own data up to date. With NearPin you add it with one script tag.
Tips for accommodations

What is there to do nearby? Guests ask first

Guests almost always ask at check-in what there is to do nearby. If your website answers that, you have to repeat it less often at the front desk.

Tips for accommodations

QR code at the front desk for the local area

With a QR code at the front desk or in the room, your guest has the map of the surroundings on their own phone during the stay. No app, no login.

Tips for accommodations

The local area in your digital guest directory

A digital guest directory holds everything guests need to know about their stay. The local area is one part of it. NearPin provides that part, plus a page guests open with a QR code.

Put the surroundings on your website, before your guest goes looking elsewhere

See the map on your own address before you change anything on your website. Try it for free, or let us walk you through it in a short demo.

First widget free for 14 days. Early Bird: €23.95 per widget per month, 10 spots left, then €29.95 (excl. VAT).