Do you need an embedded map or a Maps API build?

If the page shows one or two places, embed a map; if visitors need to search many locations, filter them or find the nearest one, you need a store locator built on the Maps JavaScript API. For a contact map or directions link without custom JavaScript, Google points to the Maps Embed API or Maps URLs, and its JavaScript API is the one for interactive maps with your own markers and data (Google: Maps JavaScript API overview).

The second decision matters as much: the Maps APIs run inside a Google Cloud project with billing enabled (Google: getting started), and that project should belong to your business, not the developer.

When is an embedded map enough?

For a contact page with one address, an embed does the job, in one of two ways:

  • Share or embed map in Google Maps: go to the part of the map you want to show, click Menu, then Share or embed map, then Embed a map and Copy HTML (Google Maps Help: share or embed a map). The HTML goes into an embed block, and the help page has no API key step.
  • Maps Embed API: the map is an iframe whose URL sets the mode (one place, a plain view, directions, Street View or a search) and the place, given as a name, address, plus code or place ID (Google: embed a map). Every request must include your API key, from a Google Cloud project with billing enabled (Google: set up the Maps Embed API).

Google's embed guide also notes that embedded maps are not supported below 200 px in either dimension, and that the iframe needs a referrer policy so key restrictions can check which site sent the request (Google: embed a map). On a Webflow build, the native Map element needs a Google Maps API key, and without one it shows a low-resolution map watermarked "for development purposes only" (Webflow: Map element).

What does a store locator need from Google?

A locator is a map plus a searchable list, built on the Maps JavaScript API, which adds customisable markers, your own map colours and interactive data layers (Google: Maps JavaScript API overview). Google's Locator Plus guide enables four APIs for its full set of practices: Maps JavaScript API, Places API (New), Geocoding API and Routes API (Google: Locator Plus guide). Most sites need fewer, so decide feature by feature:

  • Markers from your own addresses: if your list has street addresses but no coordinates, the Geocoding API supplies latitude and longitude, and the guide suggests geocoding on the server, storing the results in your database and refreshing them at least every 30 days (Google: Locator Plus guide).
  • Search from where the visitor is: browser geolocation asks permission, and a visitor may refuse or want a different starting point, so the guide adds Place Autocomplete from the Places libraries, which fills in an address as the visitor types (same guide).
  • Hours and closures from Google: Place Details from the Places API (New) can show contact information, opening hours, ratings, photos and temporary closure status, and it needs a place ID for each of your locations (same guide).
  • Nearest by travel time: a straight line can cross a river or a busy road, so the guide uses the Routes API to rank locations by driving time or road distance (same guide).
  • Filters: services or branch type come from fields in your own location data, not another API.

With a large number of locations, Google suggests marker clustering (same guide). Enable only the APIs your features use, since Google advises against leaving unused services enabled on a project (Google: Maps Platform security guidance).

What has to be set up before the developer starts?

Google lists the same required steps for every Maps API: create a Cloud project, make sure billing is enabled for it, enable each API you plan to use and create at least one API key (Google: getting started). The key links your Cloud Billing account and project to every request the site makes (Google: set up the Maps JavaScript API), and Google warns that without a billing account your maps will be degraded or other Maps API requests will return an error (Google: geocoding strategies).

Before you approve a locator, check the current Google Maps Platform pricing list for each API on your feature list. If you are hiring a developer on Upwork, say in the job post whether you need an embed or a locator, and which features, so every proposal prices the same job.

How should the API key be restricted?

Google says you are financially responsible for charges caused by abuse of unrestricted API keys, and its security guidance sets out the fix (Google: Maps Platform security guidance):

  • Both kinds of restriction: best practice is one type of application restriction and one or more API restrictions on every key.
  • Websites restriction: each allowed site entered as a whole referrer string, including https and the hostname; a wildcard such as https://*.yourdomain.com covers subdomains.
  • API restrictions: a locator key always authorises the Maps JavaScript API, plus the Geocoding API if the page uses the Geocoding Service, and Places API (New) for the newer autocomplete widget and Place class.
  • A separate embed key: restricted to the Maps Embed API and, for full control, to your websites.
  • Unused keys deleted: once you have checked that they carry no production traffic.

Google adds that restrictions matter most when a test environment may be publicly visible (same page), so staging needs a restricted key too.

Whose account should the Cloud project and billing sit in?

Yours. The Cloud Billing account defines who pays for the usage costs (Google Cloud: billing access), and whoever creates a project is automatically granted a role that lets them manage access to it (Google Cloud: manage access to projects). If the developer creates both, your map keeps working only while their account does.

So someone at your business creates the project and billing account with a company Google account, then grants the developer access on the IAM page, choosing a role with only the permissions that person needs; the same page shows how to revoke it later (Google Cloud: manage access to projects). My guide to giving a developer access without sharing passwords applies the same idea to your website platform, and who owns the code and design covers the work itself.

Where should the list of locations live?

In your CMS, so staff can add a branch without touching the map code. Google's guide assumes a database of your locations with name, address and phone number, and suggests storing each place ID there too (Google: Locator Plus guide).

  • Webflow: a Locations Collection, one item per branch. Collection lists show items on any page, each item gets a Collection page, and items can be bulk imported from a CSV file (Webflow: intro to the CMS).
  • WordPress: a custom post type, which gets its own top-level admin screen. WordPress recommends registering it in a plugin rather than the theme, so the content stays portable if the theme changes (WordPress: registering custom post types). That is how I set up locations on a WordPress build.

I usually plan name, address, phone, opening hours, latitude and longitude, place ID and one field per filter. Then make the locator, location pages, contact page and footer all read the same item: Webflow describes dynamic content as one source of truth that updates everywhere when the source changes (Webflow: intro to the CMS). And show opening hours from your CMS or from Place Details, not both, so they never disagree.

Alternatively, Google's Quick Builder can import details from your Business Profile, so a change there is reflected in the locator (Google: Locator Plus guide). If the branch list lives in another system, keeping it in sync is integration work with its own field map.

How do you keep a map page accessible and fast?

Treat the map as an extra, never the only way to find you:

  • A text list beside the map: every address, phone number and set of hours as plain text with a directions link, so a visitor who cannot use the map, or whose map fails to load, still gets the details. Locator results belong in a list as well as on markers.
  • The map only where it is used: on the contact or locator page, not loaded on every page.
  • Lazy-loading for an embed lower down: an iframe with its loading attribute set to lazy is deferred until the visitor scrolls near it, which speeds up the rest of the page (web.dev: lazy-loading iframes).
  • Libraries on demand: the Maps JavaScript API's dynamic library import requests each library when the code needs it and stops the page loading the API more than once (Google: load the Maps JavaScript API).

Before launch, I also try the search box and results list with a keyboard alone, and on a phone.

What should you receive at handover?

  • Accounts: the Cloud project and billing account in your business's name, with someone on your team able to manage access.
  • APIs: the APIs enabled and the feature each one serves.
  • Keys: each key, its restrictions and where it is used, with test keys deleted.
  • Where the key is entered: for example the Google Maps section of Webflow's Site settings (Webflow: Map element), or a plugin's settings page on WordPress.
  • Location data: the fields explained, plus a spreadsheet copy.
  • Access: the developer's role reduced or removed when the support period ends.

The rest, from domain to backups, is in my website handover checklist.