S SCHEMA.BIZ

schema.org property: hasMap

hasMap Schema

hasMap schema links a place to a map of it: the business's Google Maps listing, an OpenStreetMap page, a PDF floor plan of a shopping center, a parking map for a stadium. It's a property of Place, so every LocalBusiness subtype, every venue and every civic structure can use it. The value is a URL, or a Map object when you want to say what kind of map it is.

What hasMap means

"A URL to a map of the place."

schema.org's definition of hasMap

Which types use hasMap

schema.org defines hasMap on one type, and every subtype of it inherits it: Place.

Where you'll use it most:

Other types with a guide here that can use hasMap: MedicalBusiness, LegalService, FinancialService, EducationalOrganization.

Valid values for hasMap

schema.org expects one of Map, URL. The ones worth using:

Value type When to use it
URL Most of the time: an absolute link to the place on a map service, or to your own directions page. One string, or an array if the place has several maps.
Map When the map is a document in its own right, such as a venue map, seating chart or parking map. Give it a url, a name and a mapType (VenueMap, ParkingMap, SeatingMap or TransitMap).

How Google uses hasMap

Google's structured data documentation doesn't list hasMap: it isn't among the local business properties, required or recommended, and no other search feature reads it. To place a business on the map, the local business documentation recommends geo, a GeoCoordinates object with latitude and longitude, next to the required address. hasMap is still valid schema.org and a useful link for other consumers of your markup, but it doesn't replace either of those.

Last checked against Google's documentation: .

hasMap schema examples

A shop linked to its map listing

hasMap as one URL on a Store: the shop's place on Google Maps. It's the whole property; the next example adds the address and coordinates that Google's local business results actually use.

{
  "@context": "https://schema.org",
  "@type": "Store",
  "name": "Fern & Fable Books",
  "url": "https://www.example.com/",
  "hasMap": "https://www.google.com/maps?cid=4821736591028374651"
}

A restaurant with address, coordinates and a map link

hasMap next to the properties Google's local business documentation requires and recommends. The address and geo describe where the restaurant is; hasMap only links to a map of it.

{
  "@context": "https://schema.org",
  "@type": "Restaurant",
  "name": "Saltgrass Oyster Bar",
  "url": "https://www.example.com/",
  "telephone": "+1-843-555-0129",
  "priceRange": "$$$",
  "address": {
    "@type": "PostalAddress",
    "streetAddress": "77 Queen Street",
    "addressLocality": "Charleston",
    "addressRegion": "SC",
    "postalCode": "29401",
    "addressCountry": "US"
  },
  "geo": {
    "@type": "GeoCoordinates",
    "latitude": 32.77874,
    "longitude": -79.92964
  },
  "hasMap": "https://www.google.com/maps?cid=9035521746630918442",
  "openingHoursSpecification": {
    "@type": "OpeningHoursSpecification",
    "dayOfWeek": [
      "https://schema.org/Wednesday",
      "https://schema.org/Thursday",
      "https://schema.org/Friday",
      "https://schema.org/Saturday",
      "https://schema.org/Sunday"
    ],
    "opens": "16:00",
    "closes": "22:00"
  }
}

A shopping center with a directory map and a parking map

Two Map objects with their own mapType, plus the map-service link as a plain URL. Visitors' real questions here are where the shops are and where to park, and the typed maps answer them.

{
  "@context": "https://schema.org",
  "@type": "ShoppingCenter",
  "@id": "https://www.example.com/#center",
  "name": "Riverside Commons",
  "url": "https://www.example.com/",
  "telephone": "+1-919-555-0171",
  "address": {
    "@type": "PostalAddress",
    "streetAddress": "1500 Riverside Parkway",
    "addressLocality": "Raleigh",
    "addressRegion": "NC",
    "postalCode": "27604",
    "addressCountry": "US"
  },
  "geo": {
    "@type": "GeoCoordinates",
    "latitude": 35.81592,
    "longitude": -78.60419
  },
  "hasMap": [
    "https://www.google.com/maps?cid=1172839405562819934",
    {
      "@type": "Map",
      "name": "Store directory and floor plan",
      "mapType": "https://schema.org/VenueMap",
      "url": "https://www.example.com/maps/directory.pdf"
    },
    {
      "@type": "Map",
      "name": "Parking and EV charging",
      "mapType": "https://schema.org/ParkingMap",
      "url": "https://www.example.com/maps/parking/"
    }
  ]
}

Common hasMap mistakes

A map short link pasted without https://

VALUE_URL: This property expects an absolute URL, including https://. Relative paths can't be resolved reliably.

Wrong

{
  "@context": "https://schema.org",
  "@type": "Store",
  "name": "Fern & Fable Books",
  "hasMap": "maps.app.goo.gl/Xq7Lm2Rt9pZk"
}

Right

{
  "@context": "https://schema.org",
  "@type": "Store",
  "name": "Fern & Fable Books",
  "hasMap": "https://maps.app.goo.gl/Xq7Lm2Rt9pZk"
}

Using map or maps instead of hasMap

PROP_SUPERSEDED: schema.org has replaced this property with a newer one.

Both old names still appear in themes and plugins. The value carries over unchanged.

Wrong

{
  "@context": "https://schema.org",
  "@type": "Store",
  "name": "Fern & Fable Books",
  "map": "https://www.google.com/maps?cid=4821736591028374651"
}

Right

{
  "@context": "https://schema.org",
  "@type": "Store",
  "name": "Fern & Fable Books",
  "hasMap": "https://www.google.com/maps?cid=4821736591028374651"
}

Putting the coordinates in hasMap

VALUE_TYPE: The value isn't one of the kinds schema.org expects for this property.

Coordinates belong in geo, which is what Google's local business documentation recommends. hasMap only links to a map.

Wrong

{
  "@context": "https://schema.org",
  "@type": "Restaurant",
  "name": "Saltgrass Oyster Bar",
  "hasMap": {
    "@type": "GeoCoordinates",
    "latitude": 32.77874,
    "longitude": -79.92964
  }
}

Right

{
  "@context": "https://schema.org",
  "@type": "Restaurant",
  "name": "Saltgrass Oyster Bar",
  "geo": {
    "@type": "GeoCoordinates",
    "latitude": 32.77874,
    "longitude": -79.92964
  },
  "hasMap": "https://www.google.com/maps?cid=9035521746630918442"
}

Describing the map type in your own words

VALUE_ENUM: This property expects one of a fixed list of schema.org values, such as https://schema.org/InStock.

mapType has four values. A floor plan or store directory is a VenueMap; put your own wording in the Map's name.

Wrong

{
  "@context": "https://schema.org",
  "@type": "ShoppingCenter",
  "name": "Riverside Commons",
  "hasMap": {
    "@type": "Map",
    "mapType": "floor plan",
    "url": "https://www.example.com/maps/directory.pdf"
  }
}

Right

{
  "@context": "https://schema.org",
  "@type": "ShoppingCenter",
  "name": "Riverside Commons",
  "hasMap": {
    "@type": "Map",
    "mapType": "https://schema.org/VenueMap",
    "url": "https://www.example.com/maps/directory.pdf"
  }
}

Also watch for

  • Linking a map search ("bookshops near Raleigh") instead of the business's own place. The URL should open this one location.

  • Using a Maps embed URL from an iframe's src. It's made for a frame on your page, not for people to open; link the place page instead.

  • Giving every branch of a chain the same map link, usually the head office's. Each location's markup should link to that location.

  • Adding hasMap and leaving out geo, on the idea that the map link locates the business. Google's local business documentation recommends geo, not hasMap.

A link to a map service or a Map object

For a business, the usual value is the place's page on a map service: the Google Maps link from the business's own listing (its Share button gives one), an Apple Maps place link, or an OpenStreetMap node or way URL. Pick the one customers use, and use the link that opens this place, not coordinates dropped on a map. Short links such as maps.app.goo.gl/… are redirects; they work, but a full place URL tells a reader more and doesn't depend on the shortener.

A directions page on your own site is also a fine value, especially if it adds parking, entrances or transit details a map service doesn't have. If you link more than one service, say Google Maps for most visitors and OpenStreetMap for those who prefer it, list them in an array; there's no rule about order, and no consumer is documented to prefer one host over another.

The link should outlive a redesign. A map service's place page keeps working as long as the listing exists, while a directions page on your own site moves when the site does; if you link your own page, keep its address stable or redirect the old one.

Use a Map object when the map is a document about the place rather than a dot on a map: a mall directory, a campus map, a stadium seating chart, a festival site plan. mapType takes one of four values from MapCategoryType, written as full URLs: https://schema.org/VenueMap for floor plans and site maps, ParkingMap, SeatingMap and TransitMap. A place can have several, in an array, with plain URLs mixed in.

hasMap, geo and address do different jobs

Three properties describe where a place is, and only two of them matter to Google's local business results. address is required: a PostalAddress with street, locality, region, postal code and country. geo is recommended: a GeoCoordinates object with latitude and longitude, and the documentation asks for at least five decimal places, which is about a meter. hasMap is neither; it's a pointer to a map someone else drew.

So the order of work is address first, then geo, then hasMap if you have a good map to link. Take the coordinates from the business's map pin rather than geocoding the street address, which can land in the middle of a block or on the wrong side of a large site, and keep them with the location's other data so they move with the address if the business does.

Don't put coordinates, an embedded map's HTML or a GeoShape into hasMap. Coordinates belong in geo, an outline of a service area in areaServed.

Venues, campuses and many locations

Places with a lot of ground to cover get the most from typed maps. A university's CollegeOrUniversity can link its campus map as a VenueMap and its parking map as a ParkingMap; an arena or theater can link its seating chart as a SeatingMap, which suits the location of an Event too, since a Place can carry hasMap wherever it appears. Google's event documentation doesn't list the property either, so treat it as information for visitors and other consumers of the markup, not something Google's event results read.

For a chain, hasMap is a per-location field, like the phone number and hours. Store each location's map link with its address in the CMS and print it on that location's page; a missing link is better than the head office's link on every branch.

To check the markup, paste it into the Validator at /markup/validator/. It reports a relative or scheme-less link, a non-URL value, a mapType outside the four values and the old map and maps names. The Generator at /markup/generator/ has a map URL field in its LocalBusiness form, next to the coordinates.

Other property guides