The place Map Mode
Learn how to use the place map mode on an embedded map.
We'll cover the following
The place
map mode
The place
map mode will display a map focused on a particular address or place. The Google Maps API will highlight the focused location in red or place a marker on it. Here’s the base URL of this map mode:
https://www.google.com/maps/embed/v1/place?key=API_KEY&PARAMETERS
The place
map mode parameters
The table below lists parameters that we can use in the place
map mode:
Parameters | Category | Description |
| Required | This parameter defines the location of the map marker. It accepts plus codes or URL-encoded addresses as input. |
| Optional | This parameter sets the center of the map view. It accepts comma-separated latitude and longitude values. |
| Optional | This parameter sets the initial zoom level of the map view. It accepts integer values ranging from The maximum possible zoom value varies depending on the location, but is usually |
| Optional | This parameter defines which map type loads. It only accepts |
| Optional | This parameter defines the language for the UI elements and labels on the map. It accepts a two-character ccTLD region code as input. |
| Optional | This parameter defines the appropriate borders and labels to display, and tailors them according to the geopolitical sensitivities of a region. It accepts a two-character ccTLD region code as input. |
Note: Click here to learn more about specific items in this table including Plus Codes and ccTLDs.
Code example
In the code example below, the place
map mode displays a map marker at the Taj Mahal:
In lines 13–15 of the HTML file, we pass the q
parameter with the URL-escaped address Taj+Mahal,Agra+India
to the request URL. This centers the map on the Taj Mahal and places a marker on it.