Websites

Add Google Maps to your website: type the address, choose the layout

Adding Google Maps to a website shows visitors exactly where you are and gives them directions in one tap. You should not need an API key or embed code for that, only the address people would type into Maps themselves.

Create a website with OneCraftHow the AI adds a Google Maps embed and directions link, a store finder for several places, and where a map does not belong

A map and a directions link

Give your address in the brief, or ask the chat to add a map to the contact page. The AI writes a Google Maps embed in a frame with a title naming the place, and a Directions link that opens Google Maps with your location as the destination. Ask for the map full width near the end of the home page, or beside the address and hours on a visit us page.

No key, no embed code

The map is a Google Maps embed made from your address or coordinates, so there is no API key to create and no code to paste. Write the address the way Google Maps finds it, including the suburb and state, and check the preview: if the pin lands in the wrong place, give the postcode or the business name and ask the chat to fix it.

Loaded with care

Ask for the map to load only when it scrolls near the screen, so visitors who never scroll that far do not download it and the page shows faster. When the site has a consent banner, the map stays a click to load placeholder until the visitor accepts, because a Google Maps frame calls another host. Every build is checked at phone width, so the frame cannot overflow a small screen.

Several places, or none

For more than one place, ask for a store finder: the locations live in the site's own database with their address, phone and hours, the nearest come first when the visitor allows their location, and each has its own map and directions link. A postcode check answers in plain words whether you serve an area. If your business comes to the customer, such as a mobile mechanic, skip the map and list the suburbs you cover instead.

Help search engines too

A map helps visitors; structured data helps search engines. Ask for local business structured data and the AI writes your name, address, phone and hours into the home page using only the facts you gave. Keep that address identical to your Google Business Profile, word for word, so the two reinforce each other.

How it works, in three steps

  1. Step 1

    Give the address

    Put the full address in the brief, or ask the chat to add a map to a page.

  2. Step 2

    Check the pin

    Look at the preview at phone and desktop widths and ask for a fix if the pin is off.

  3. Step 3

    Publish

    On a paid plan, publish; the map and directions link work on the live site.

Limits worth knowing

Questions people ask

Do I need a Google API key?

No. The map is a standard Google Maps embed made from your address, which does not need a key. The Open in Google Maps link under the map opens the full Maps app or website, where visitors get directions from wherever they are.

Can I show several locations?

Yes, with a store finder. The locations are rows in the site's own database, each with its address, hours and its own map, listed nearest first when the visitor shares their location, with a search by suburb. A single map with several pins is not offered. You add or edit locations in the site's admin area.

Does a map on my site help my Google ranking?

The embed itself is a convenience for visitors. What helps local search is consistent name, address and phone details on your site and your Google Business Profile, plus local business structured data, which the AI adds when you ask for it, using only the details you gave.

Why is the map blank in the preview?

Check that the address is right first. If the site has a consent banner, the map waits for the visitor to accept before it loads, so press accept in the preview. If it loads only on scroll, scroll it into view and give it a moment. The published site behaves the same way.

Is the map accessible?

The map frame has a title naming the place, so screen readers announce it, and the address should also be written as text beside it. Always keep the address as text somewhere on the page, because a map alone cannot be read by everyone.

Can I put the map on every page?

You can, but one map on the home page or a contact page is usually enough. Repeating it everywhere adds load for no benefit. The footer can carry the address as text on every page instead, which is lighter and still lets people copy it.

What if my address is a PO box or I work from home?

Leave the map off. A map of a PO box or a home address helps nobody and can be a safety risk. Describe the area you serve in words, such as the suburbs or a radius, and invite people to get in touch through the contact form.

Make your own website

The button opens the generator with this use case already described. Change the wording to match yours, generate, then edit anything you like.

Create a website with OneCraft

Not ready to start? See the AI website builder page first.

Related pages

More finished work of this kind is on the website examples hub.

Sources

Written and checked by the OneCraft team. Last checked .