Location with 'hasMap'

Helping business show up on Google Maps


One of the most important factors in search, especially if you are a local business, is to show up properly in Google Maps and have the correct location listed. The best way to do that using Schema is to properly markup your Google Map URL and other business information.

Using URL Schema:

Schema location with 'hasMap':
<div itemscope itemtype="http://schema.org/LocalBusiness">
<span itemprop="name">Example Company Name</span>
<!-- Place the Map code in the Places (LocalBusiness) section, not PostalAddress -->
<a itemprop="hasMap" href="https://maps.google.com/maps?cid=YOURCIDNUMBER" target="_blank">View Map</a>
</div>
JSON-LD Example Code Snippet:
<script type='application/ld+json'>{ 
"@context": "http://www.schema.org", 
"@type": "LocalBusiness", 
"name": "Example Company Name",
"hasMap": "https://maps.google.com/maps?cid=YOURCIDNUMBER" 
} 
}</script>

Using Expanded Map Schema:

Microdata Example Code Snippet:
<div itemscope itemtype="http://schema.org/LocalBusiness">
<span itemprop="name">Example Company Name</span>
<!-- Place the Map code in the Places (LocalBusiness) section, not PostalAddress -->
<span itemscope itemprop="hasMap" itemtype="http://schema.org/Map">
<link itemprop="mapType" href="http://schema.org/VenueMap" />
<a itemprop="url" href="http://yourvenuemapsurl.com" target="_blank">View Map</a>
</span>
</div>
JSON-LD Example Code Snippet
<script type='application/ld+json'>{ 
"@context": "http://www.schema.org", 
"@type": "LocalBusiness", 
"name": "Example Company Name", 
"hasMap": { 
"@type": "Map", 
"mapType": "VenueMap", 
"url": "http://yourvenuemapsurl.com" 
} 
} 
}</script>

Share this Post