Location with ‘hasMap’


Schema location with ‘hasMap’:


<div itemscope itemtype="http://schema.org/LocalBusiness">
<span itemprop="name">Company Name</span>
<div itemprop="address" itemscope itemtype="http://schema.org/PostalAddress">
<span itemprop="streetAddress">1234 Main Street</span>
<span itemprop="addressLocality">Houston</span>
<span itemprop="addressRegion">TX</span>
<span itemprop="postalCode">77064</span>
</div>
<span itemscope itemprop="hasMap" itemtype="http://schema.org/Map">
<link itemprop="mapType" href="http://schema.org/VenueMap" />
<a itemprop="url" href="GoogleMapURL" 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", 
"address": { 
"@type": "PostalAddress", 
"streetAddress": "123 Main Street", 
"addressLocality": "Boulder", 
"addressRegion": "CO", 
"postalCode": "80301", 
"addressCountry": "US" 
}, 
"hasMap": { 
"@type": "Map", 
"mapType": "VenueMap", 
"url": "http://yourvenuemapsurl.com" 
} 
} 
}</script>

Courtesy of Ryan Bradley