Google Maps Platform: Complete APIs, Places & Routes Guide

Google Location & Maps Developer Playbook

Google Maps Platform: Complete APIs, Places & Routes Guide

Google Maps Platform is Google's developer platform for building maps, place discovery, address search, routing, geocoding and other location-based functionality into websites and applications. It is different from simply using the consumer Google Maps app. This guide forms part of our wider Google playbook and connects closely with Google Cloud Console for projects, credentials, billing and quota management.

KEY Google Maps Platform is modular. A project should enable and pay for only the APIs and features the application actually needs rather than treating “Google Maps API” as one unlimited service.
Platform Fundamentals

What Is Google Maps Platform?

Google Maps Platform provides developer services for embedding geographic experiences, finding places, converting addresses, calculating routes and building location-aware applications.

MAP

Build Map Experiences

Add interactive maps, markers, map styling and location-based interfaces to websites and applications.

PLACE

Work With Places

Search for businesses and locations, provide autocomplete and retrieve specific information about recognised places.

ROUTE

Calculate Journeys

Calculate routes, travel durations and route matrices for delivery, mobility, field-service and location-based applications.

User App vs Developer Platform

Google Maps vs Google Maps Platform

The ordinary Maps product helps people navigate and discover places. Maps Platform lets developers build location functionality into their own products.

MAPS

Google Maps

The consumer product is designed for people who want to find places, navigate, explore areas and obtain journey information directly through Google's own interface.

  • Search for places
  • View businesses
  • Get directions
  • Explore areas
  • Navigate journeys
API

Google Maps Platform

The developer platform gives websites and applications programmatic access to selected Maps, Places, Routes and geospatial functionality.

  • Build custom map interfaces
  • Add address autocomplete
  • Retrieve Place Details
  • Calculate routes
  • Geocode addresses
  • Create location-powered products
Platform Service Map

Four Core APIs to Understand First

Maps Platform includes many products, but these four services cover a large share of common website and application location workflows.

JS

Maps JavaScript API

Create interactive web maps, markers, custom map experiences, Places-powered features and supported 2D or 3D interfaces.

PLACE

Places API (New)

Search for places, retrieve detailed place information and power location autocomplete and discovery experiences.

ROUTE

Routes API

Calculate a route between locations or compare distances and journey times between multiple origins and destinations.

GEO

Geocoding API

Convert addresses into coordinates and convert geographic coordinates or Place IDs back into human-readable addresses.

Developer Setup

The Typical Maps Platform Setup Workflow

Maps Platform is normally configured through a Google Cloud project with the required APIs, authentication, billing and usage controls.

01

Create Project

Use a dedicated or appropriate existing Google Cloud project.

02

Enable Billing

Link the project to the required Cloud Billing account.

03

Enable APIs

Enable only the Maps Platform services the application needs.

04

Create Credentials

Generate the appropriate API key or other supported authentication.

05

Restrict Credentials

Limit where the key can be used and which APIs it may call.

06

Monitor Usage

Watch API requests, cost, errors, quotas and application behaviour.

CLOUD

Need the Cloud Infrastructure Layer?

Our Google Cloud Console guide covers projects, API enablement, credentials, IAM, billing, quotas and logs in more depth.

Maps JavaScript API

Build an Interactive Map Rather Than a Static Location Box

The Maps JavaScript API is designed for richer web applications where the map needs custom behaviour, styling, data or interaction.

JS

Maps Become Part of the Application

The JavaScript API lets developers control the map interface and integrate additional Maps Platform capabilities around it.

Current Maps JavaScript capabilities include interactive 2D and 3D experiences, Advanced Markers, custom data, Places integration and cloud-based map styling.

A map can therefore become part of a store locator, property platform, delivery system or location-search interface rather than simply displaying a single pin.

2D & 3D maps Build supported interactive map experiences suited to the application.
Advanced Markers Create customised location markers rather than relying on the older marker class.
Cloud-based map styling Control supported map features, visibility and presentation through map styles.
Places integration Combine place search and information with the visible map interface.
Custom data Layer application-specific geographic information into the map experience.
Choose the Simpler Tool When Possible

Maps Embed API vs Maps JavaScript API

A business website that only needs to show a location does not automatically need a custom JavaScript Maps implementation.

EMBED

Maps Embed API

Best suited to simpler map displays where the site mainly needs to show a place, route or search result without building significant custom application logic around the map.

  • Simple implementation
  • Useful for basic contact/location pages
  • Limited application logic
  • Not intended as a full custom map framework
JS

Maps JavaScript API

Better when the website needs interactive application behaviour, dynamic markers, custom styling, event handling, map-based search or richer location-driven interfaces.

  • Interactive application logic
  • Advanced Markers
  • Dynamic map data
  • Places integrations
  • Customised experiences
Places API (New)

Search, Discover and Retrieve Information About Places

Places API is the location-data layer behind many search, autocomplete and business-discovery experiences.

AUTO

Autocomplete

Provide place and query predictions as a user types an address, business name or location-related search.

TEXT

Text Search

Search for places using a natural text query when the application knows what the user wants but not the exact Place ID.

NEAR

Nearby Search

Find matching places within a defined geographic area using supported place types and search parameters.

DETAIL

Place Details

Retrieve selected information for a specific recognised place using its Place ID.

Place Identity Workflow

Autocomplete → Place ID → Place Details

Place IDs create a cleaner application workflow than repeatedly trying to match unrestricted free-text addresses.

01

User Types

The user begins entering an address, business or destination.

02

Autocomplete Predicts

The application presents supported matching place predictions.

03

User Selects Place

The chosen result provides a recognised Google Place ID.

04

Retrieve Details

Use that identifier in Place Details or other compatible Maps Platform workflows.

Place IDs

Use a Place Identifier When the Application Needs a Recognised Place

A Place ID uniquely identifies a place within Google's Places and Maps ecosystem and can be passed between compatible APIs.

ID

Stable Application Reference

Use the Place ID as the recognised location identifier rather than treating a human-entered address string as the only identity.

DETAIL

Retrieve Details

The Place ID can be used to request selected information about the recognised location through compatible APIs.

GEO

Use Across Workflows

Place IDs can participate in geocoding, route and other supported Maps Platform operations.

Places Field Masks

Request the Data You Need — Not Every Available Place Field

Places API (New) requires field masks for applicable requests, and requested fields can influence the SKU and therefore cost.

ALL

Poor Production Habit

Requesting every available place field simply because it is convenient can return unnecessary data and can trigger a more expensive pricing tier than the application actually needs.

FieldMask: *
MASK

Better Field Selection

Define the minimum useful fields for the product experience and request additional information only when it is genuinely required.

displayName formattedAddress location

Field selection is both a response-design decision and a cost-control decision.

Current API Architecture

New Projects Should Evaluate Places API (New), Not Start With Legacy Tutorials

Google now distinguishes the current Places API (New) from the older legacy Places service. Google also keeps separate migration guidance for applications that already rely on the legacy implementation.

A legacy application does not necessarily need an immediate blind rewrite, but new development should not begin simply by copying an old tutorial that assumes legacy endpoints and request patterns.

Places API (New) Current service for new Places web-service development.
Places API (Legacy) Older service retained for existing implementations and migration paths.
Migration Review Google's migration guidance because request structures, fields and behaviour are not identical.
Places & AI

Places API Is Expanding Beyond Raw Location Fields

Selected Places API experiences now include AI-generated place or area summaries for supported locations and use cases.

INFO

Traditional Place Data

Applications can request structured information such as name, address, coordinates and other eligible place fields.

AI

Place Summaries

Supported Places API functionality can provide AI-generated high-level descriptions for eligible places.

AREA

Area Summaries

Google also provides supported AI-generated summaries for certain area-level location use cases.

Routes API

Compute One Route or Compare Many Origin–Destination Pairs

Routes API separates ordinary route calculation from matrix calculations across multiple origins and destinations.

ROUTE

Compute Routes

Use Compute Routes when the application needs an appropriate route between an origin and destination.

Warehouse ↓ Customer ↓ route distance duration polyline

Depending on the request, applications can use supported options involving travel mode, traffic, alternatives, toll-related information, feature avoidance and waypoint behaviour.

MATRIX

Compute Route Matrix

Use a route matrix when you need distances or travel times across several origins and destinations.

3 warehouses × 20 destinations ↓ route matrix ↓ compare duration / distance

This can support dispatching, delivery allocation and other operational comparisons without pretending that the API is automatically a complete fleet-optimisation system.

Migration Note — 2026

Directions API and Distance Matrix API Are Legacy Services

Google now places the older Directions API and Distance Matrix API in legacy mode and provides migration guidance towards Routes API equivalents.

For new development, evaluate Compute Routes and Compute Route Matrix rather than beginning with an old Directions or Distance Matrix tutorial.

Directions API Legacy → evaluate Compute Routes.
Distance Matrix API Legacy → evaluate Compute Route Matrix.
Existing Application Use Google's migration documentation rather than changing endpoints without checking differences.
Understand Matrix Scale

Route Matrix Usage Grows by Origins × Destinations

Compute Route Matrix pricing and capacity are based on matrix elements. If you request two origins against three destinations, the matrix contains six origin–destination elements.

This is important when designing large allocation systems because increasing both sides of the matrix can increase billable usage far more quickly than the raw number of API requests suggests.

Geocoding API

Address → Coordinates and Coordinates → Address

Geocoding converts location representations. It should not be confused with searching Google's database for nearby businesses or broad place discovery.

FWD

Forward Geocoding

Convert a human-readable address into geographic coordinates and other supported geocoding information.

10 Downing Street, London ↓ latitude longitude Place ID

Useful when an application receives an address but needs coordinates for map positioning or further location calculations.

REV

Reverse Geocoding

Convert coordinates or a Place ID into a human-readable address.

51.5034, -0.1276 ↓ human-readable address

Useful for pickup locations, map selections and applications that begin with geographic coordinates rather than an entered address.

Use the Correct Service

Geocoding Is Not the Same as Places Search

Choosing an API by the business question produces cleaner implementation than trying to use one endpoint for every location task.

GEO

“I Have an Address”

Use geocoding when the task is primarily to convert a known address into coordinates or related geographic information.

PLACE

“I Need to Find a Business”

Use Places search when the task is to discover recognised places matching a query or geographic condition.

DETAIL

“I Know the Place ID”

Use Place Details or another compatible Place-ID workflow when the application already knows the recognised place.

API-Key Security

Browser Keys and Server Keys Need Different Restrictions

Google recommends restricting Maps Platform API keys by both the application environment and the APIs the credential is allowed to call.

WEB

Browser / Website Key

A browser-facing implementation can use suitable website restrictions so the key is accepted only from authorised web origins.

Application restriction: approved websites + API restriction: Maps JavaScript API

The key may still be visible in browser-side implementation, which is why correct restrictions are essential.

SERVER

Server-Side Key

Server-side web-service requests should use suitable server restrictions, with Google recommending IP-address restrictions for API-key-based server applications.

Application restriction: authorised server IP + API restriction: Places API / Routes API

Avoid trying to use one key across browser, mobile and server environments when those environments require different restriction types.

Security Rule

Do Not Use One Unrestricted Google Maps API Key Everywhere

Restrict each production key to its intended application environment and the specific APIs or SDKs it needs. If different application types require different restriction methods, use separate credentials rather than weakening one shared key.

If a key is exposed or abused, rotate it carefully, confirm that the replacement works and remove the compromised credential.

Maps Platform Billing

Understand the SKU Behind the Request

Current Google Maps Platform pricing is based on pay-as-you-go billable events, with different services and feature levels mapped to different SKUs and usage tiers.

01

API Operation

Your application loads a map, performs a search, gets place data or computes a route.

02

SKU

The operation and requested feature level map to a specific billable SKU.

03

Billable Event

The Maps Platform pricing model counts eligible requests, loads or elements according to that SKU.

04

Usage Tier

Current pricing varies with the service, SKU and monthly usage volume.

Outdated Tutorial Warning

Do Not Base 2026 Cost Planning on the Old $200 Monthly Credit Model

Google changed Maps Platform pricing and free-usage arrangements in 2025. Use the current Maps Platform SKU pricing table and your Cloud Billing data instead of copying cost assumptions from older tutorials.

Cost Control

Control Usage Before the Monthly Bill Arrives

Good Maps Platform cost management starts with API design, key security and usage monitoring rather than relying on billing alerts alone.

MASK

Use Precise Field Masks

Request only the Places information required by the interface instead of using expensive broad field selections.

KEY

Restrict API Keys

Prevent unintended third parties from using your credential and generating billable Maps Platform traffic.

QUOTA

Set Appropriate Quotas

Use service quotas to create operational limits that reflect expected application traffic.

ALERT

Use Budgets & Alerts

Configure Cloud Billing monitoring so unusual spend is surfaced before the end of the billing period.

REQ

Avoid Duplicate Requests

Do not repeatedly call a paid service simply because the front end was implemented inefficiently.

SKU

Understand Feature Pricing

Some richer data fields and route features can map to higher-value SKUs than basic requests.

MON

Monitor API Usage

Track which APIs and operations are generating traffic rather than looking only at one total Cloud bill.

TERMS

Respect Caching Rules

Do not assume Maps Platform data can be stored indefinitely merely to reduce requests. Follow the service's applicable caching and licence rules.

Quotas

Billing and Quota Are Different Controls

An active billing account means eligible usage can be charged. It does not mean the API has unlimited capacity.

£

Billing

Determines how eligible Google Maps Platform usage is charged to the linked Cloud Billing account.

QPS

Quota

Controls service consumption and request volume according to the API's quota model and project settings.

PLAN

Capacity Planning

Check the live quota documentation for the exact API and design traffic, retry and scaling behaviour around the limits that apply to your project.

Old Tutorial Warning — 2026

Maps JavaScript Drawing Library Is No Longer Available

Google deprecated the Drawing Library in August 2025 and removed support in May 2026. Applications that relied on the old library for drawing markers, polygons, polylines, rectangles or circles need an alternative approach.

This matters because older tutorials can still tell developers to load the drawing library even though that implementation is no longer supported.

Old Maps JavaScript Drawing Library
Status Deprecated 2025 and unavailable from May 2026.
Next Step Use an appropriate current drawing solution rather than copying the old library setup.
Modern Marker Development

Prefer Advanced Markers for New Maps JavaScript Work

Google's older Marker class is deprecated. Current Maps JavaScript development should evaluate AdvancedMarkerElement instead.

OLD

Legacy Marker

The older Marker class remains visible in many tutorials but is deprecated for new development.

ADV

AdvancedMarkerElement

Google's modern marker implementation supports richer styling and current Maps JavaScript development patterns.

MAPID

Check Requirements

Review the current Advanced Markers documentation and map-ID requirements rather than translating old Marker code one line at a time.

EEA Considerations

EEA Billing Accounts Can Have Different Maps Platform Conditions

Google introduced EEA-specific Maps Platform terms effective 8 July 2025, and service functionality can vary by region.

EEA

Check the Billing Location Before Reusing Old Implementation Advice

If a Maps Platform project is linked to a billing account with an EEA billing address, review Google's current EEA terms and the service-specific adjustments relevant to that project.

This is particularly important for organisations building location experiences across several countries or copying an implementation designed under a different regional contract.

This section is a platform reminder rather than legal advice; the applicable Google Maps Platform agreement remains the controlling source.

Check billing geography Identify whether the project falls under current EEA Maps Platform terms.
Check the specific API Functionality adjustments can differ between Maps Platform services.
Do not rely on old tutorials Implementation advice written before July 2025 may omit EEA-specific changes.
Review current terms Use Google's live service documentation and agreement for production decisions.
Practical Location Workflows

Six Useful Google Maps Platform Application Patterns

The best API choice becomes clearer when you start from the business workflow rather than from the service name.

STORE

Store Locator

Help users discover branches and inspect relevant information on an interactive map.

Business locations
Maps JavaScript API
Markers / filters
Place information
Directions link
AUTO

Address Autocomplete

Replace uncontrolled address entry with assisted place selection.

User types address
Autocomplete
Place prediction
Selected Place ID
Application form
DELIV

Delivery Estimator

Calculate route information before applying your own commercial delivery rules.

Customer location
Compute Routes
Distance / duration
Business rules
Delivery estimate
MATRIX

Multi-Depot Assignment

Compare several starting points against multiple customer destinations.

Warehouses
Destinations
Compute Route Matrix
Compare journeys
Apply operational logic
AREA

Service-Area Checker

Convert a customer's address into geographic information and apply your own service-area logic.

Customer address
Geocoding
Coordinates
Compare service region
Eligible / not eligible
NEAR

Local Business Discovery

Find relevant recognised places around a user-selected geographic area.

User location
Nearby Search
Matching places
Field mask
Display selected details
Local Business Distinction

Maps Platform vs Google Business Profile

Businesses often confuse these because both involve Maps, but they serve different purposes.

API

Google Maps Platform

A developer platform used to build custom map, place, route, geocoding and location-data functionality into your own website or application.

  • Developer APIs
  • API keys
  • Billing
  • Places data
  • Routes
  • Application logic
GBP

Google Business Profile

A business-management product used to manage an eligible organisation's presence across Google Search and Maps.

  • Business information
  • Categories
  • Hours
  • Reviews
  • Photos
  • Local visibility

See our Google Business Profile guide.

Measurement

Measure What Users Do Around the Map Experience

Maps Platform builds the geographic functionality. Analytics and tagging tools can measure how people interact with the wider website or application.

MAP

Maps Platform

Build the location interface and retrieve the Maps Platform data required by the product.

GTM

Google Tag Manager

Use Google Tag Manager to implement appropriate measurement events around website interactions.

GA4

Google Analytics

Use Google Analytics to analyse measured interactions and business outcomes.

Maps & AI Applications

Location Data Can Become One Input to a Wider AI Application

Maps Platform provides structured location functionality. Gemini can provide a separate reasoning or conversational layer around your own controlled application.

MAP

Maps Data

Use Places, Routes or geocoding to retrieve the geographic information your application actually needs.

APP

Application Logic

Validate and process that information using your own business rules and permission model.

Avoid These Errors

Common Google Maps Platform Mistakes

Most Maps Platform problems come from old tutorials, insecure credentials, wrong service selection or poor understanding of billing and field usage.

KEY

Leaving API Keys Unrestricted

Production keys should be limited to the intended platform and permitted Maps APIs.

ONE

Using One Key Everywhere

Browser and server environments often require different application restrictions, so separate keys can be safer and clearer.

ALL

Requesting Every Place Field

Broad field masks can return unnecessary information and may move the request into a higher-cost Places SKU.

OLD

Starting With Legacy APIs

New development should not automatically begin with old Places, Directions or Distance Matrix tutorials.

DRAW

Using the Removed Drawing Library

The Maps JavaScript Drawing Library became unavailable in May 2026.

MARK

Building New Code Around Legacy Marker

Evaluate AdvancedMarkerElement rather than beginning a new Maps JavaScript implementation around the deprecated Marker class.

PRICE

Using Old Pricing Advice

Maps Platform pricing has changed. Check the live SKU table rather than assuming historic monthly-credit rules still apply.

GEO

Using Geocoding as Place Search

Geocoding converts location representations; Places handles discovery and recognised place information.

EEA

Ignoring EEA Terms

Projects linked to EEA billing accounts should review Google's current regional Maps Platform requirements and functionality.

Maps Platform Questions

Common Questions About Google Maps Platform

Quick answers covering Maps APIs, Places, Routes, Geocoding, API keys, billing and developer setup.

01 What is Google Maps Platform?

Google Maps Platform is Google's developer platform for adding maps, place search, location information, routing, geocoding and other geographic functionality to websites and applications.

02 Is Google Maps Platform the same as Google Maps?

No. Google Maps is primarily a consumer product for finding places and navigating. Maps Platform provides APIs and SDKs for developers building their own location-powered products.

03 What is the Maps JavaScript API?

The Maps JavaScript API lets developers create interactive web maps and add features such as Advanced Markers, Places integration, custom data and cloud-based map styling.

04 What is Places API?

Places API provides place discovery and information through capabilities such as Autocomplete, Text Search, Nearby Search and Place Details.

05 What is a Google Place ID?

A Place ID is an identifier for a recognised place in Google's Places and Maps ecosystem. It can be used with compatible APIs such as Place Details and geocoding workflows.

06 What is a Places field mask?

A field mask specifies which Place data fields a request should return. Places API (New) requires field selection for applicable methods, and the fields requested can influence the billed SKU.

07 What is the Routes API?

Routes API provides Compute Routes for calculating an appropriate route between locations and Compute Route Matrix for comparing distances and journey times across multiple origins and destinations.

08 Are Directions API and Distance Matrix API still current?

Google places both services in legacy mode. New development should evaluate Routes API, with Compute Routes replacing many Directions use cases and Compute Route Matrix replacing many Distance Matrix workflows.

09 What does the Geocoding API do?

Geocoding converts human-readable addresses into geographic coordinates. Reverse geocoding converts coordinates or supported Place IDs into human-readable address information.

10 Should Google Maps API keys be restricted?

Yes. Google recommends using application restrictions and API restrictions. For example, website keys can use approved website restrictions, while server-side keys commonly use authorised IP-address restrictions.

11 Is Google Maps Platform free?

Maps Platform uses a pay-as-you-go model for its core services, with service-specific free usage caps and volume pricing depending on the SKU. Some individual products, such as eligible Maps Embed API use, can have different pricing arrangements. Always check the live pricing table.

12 Is Google Maps Platform the same as Google Business Profile?

No. Maps Platform is a developer API platform. Google Business Profile is used to manage an eligible business's presence on Google Search and Maps. See our Google Business Profile guide.

Choose the Location Service First — Then Build the Map Experience

Google Maps Platform works best when each service has a defined job. Use Maps JavaScript API when the website needs a genuinely interactive map rather than a simple embed. Use Places API when users need to search for recognised locations, obtain autocomplete predictions or retrieve selected Place Details. Use Routes API for route and matrix calculations, and use Geocoding when the problem is converting between addresses, coordinates and Place IDs. Restrict every API key, request only the Places fields the product needs, understand the SKU behind each billable operation, monitor quota and cost, and avoid building new applications from legacy Directions, Distance Matrix, Places or Drawing Library tutorials. A successful location product is not the one with the most Google APIs enabled — it is the one that uses the smallest correct set of services securely and predictably.

guestpost.uk new logo
💙 PayPal
💳 VISA
💳 Mastercard
🏦 Bank
🔒 SSL

© 2026. All rights reserved.

AI
GuestPost AI ConsultantSEO Consultant · Link Building · GEO · Tools
Ask about packages, pricing, SEO tools or a growth plan