Google Maps


Google Maps

Google Maps


Google Maps API (Application Programming Interface)

An API is a set of methods and tools that can be used for building software applications.

Google Maps in HTML

This example creates a Google Map in HTML:


Free Google API Key

Google allows a website to call any Google API for free, thousands of times a day.

Go to https://developers.google.com/maps/documentation/javascript/get-api-key to learn how to get an API key.

Google Maps expects to find the API key in the key parameter when loading an API:

<script src="https://maps.googleapis.com/maps/api/js?key=YOUR_KEY&callback=myMap"></script>

Google Maps - Basic Map Types

The following map types are supported in Google Maps API:

  • ROADMAP (normal, default 2D map)
  • SATELLITE (photographic map)
  • HYBRID (photographic map + roads and city names)
  • TERRAIN (map with mountains, rivers, etc.)

The map type is specified either within the Map properties object, with the mapTypeId property:


There are no comments yet.
Your message is required.
Markdown cheatsheet.