Address, hours and service areas
A business's location, hours and service area are described with a handful of schema.org types and properties: PostalAddress for the address, GeoCoordinates for latitude and longitude, OpeningHoursSpecification for hours, and areaServed for the places served.[1][2][3][4] This page gives their schema.org definitions and Google's notes on using them in local business markup.
PostalAddress
Schema.org defines PostalAddress simply as "the mailing address." It sits under ContactPoint in the hierarchy, so it also inherits contact properties.[1] Its own properties are:[1]
| Property | Schema.org definition |
|---|---|
| streetAddress | The street address, for example 1600 Amphitheatre Pkwy[1] |
| addressLocality | The locality in which the street address is, and which is in the region, for example Mountain View[1] |
| addressRegion | The region in which the locality is, for example California or another first-level administrative division[1] |
| postalCode | The postal code, for example 94043[1] |
| addressCountry | The country; recommended in two-letter ISO 3166-1 alpha-2 format, such as "US"[1] |
| extendedAddress | An address extension such as an apartment number[1] |
| postOfficeBoxNumber | The post office box number for PO box addresses[1] |
Google requires an address in local business markup and asks for "as many properties as possible."[5] For Organization markup it says to include all properties that apply to the country and allows several addresses for organizations in several cities, states or countries.[6]
GeoCoordinates
GeoCoordinates holds "the geographic coordinates of a place or event."[2] Its latitude and longitude properties take numbers in WGS 84, with the examples 37.42242 and -122.08585.[2] Google's local business documentation recommends geo and says the precision of latitude and longitude "must be at least 5 decimal places."[5]
Opening hours
Schema.org offers two ways to give hours. The openingHours property on LocalBusiness takes text, as a weekly time range with two-letter day codes and 24:00 times.[7] The openingHoursSpecification property takes OpeningHoursSpecification objects, "a structured value providing information about the opening hours of a place or a certain service inside a place."[3] Their properties are dayOfWeek, opens, closes, validFrom and validThrough.[3]
Google's local business documentation uses openingHoursSpecification, as a single object or an array, with times in hh:mm:ss format,[5] and gives these patterns:[5]
| Situation | How Google says to mark it up |
|---|---|
| Hours past midnight | One specification, e.g. Saturday opens 18:00, closes 03:00[5] |
| Open 24 hours | opens "00:00", closes "23:59"[5] |
| Closed all day | opens and closes both "00:00"[5] |
| Seasonal hours or holiday closures | Add validFrom and validThrough dates[5] |
"openingHoursSpecification": [
{ "@type": "OpeningHoursSpecification",
"dayOfWeek": "Saturday", "opens": "00:00", "closes": "23:59" },
{ "@type": "OpeningHoursSpecification",
"dayOfWeek": "Sunday", "opens": "00:00", "closes": "00:00" }
]
This example, adapted from Google's documentation, shows a business open all day Saturday and closed all day Sunday.[5] Departments with different hours can be given their own department entries.[5]
Service areas
The areaServed property is defined as "the geographic area where a service or offered item is provided." Its values can be an AdministrativeArea, a GeoShape, a Place or text, and it can be used on ContactPoint, DeliveryChargeSpecification, Demand, FinancialIncentive, Offer, Organization and Service. It supersedes the older serviceArea property.[4]
For an area defined by distance, schema.org offers GeoCircle, "a GeoShape representing a circular geographic area." Its center is given with geoMidpoint, or more approximately with an address or postal code, and geoRadius gives the approximate radius, in metres unless stated otherwise.[8]
"areaServed": {
"@type": "GeoCircle",
"geoMidpoint": { "@type": "GeoCoordinates", "latitude": 32.71570, "longitude": -117.16110 },
"geoRadius": 40000
}
Google's local business property list does not include areaServed.[5] Google says it can make general use of schema.org structured data beyond its documented properties;[9] the Google pages read for this wiki describe no specific use of areaServed.
Entity linking properties
An address describes where a place is in postal terms. These properties describe where it is in relation to other places, which is covered in more detail on places and service areas. A containedInPlace value should be a real place of the correct type, such as a City or AdministrativeArea, and the same place should not be described twice under different @id values; see the entity graph pattern.
| Property | Expected values | Schema.org definition (quoted) |
|---|---|---|
| containedInPlace | Place | "The basic containment relation between a place and one that contains it."[10] |
| containsPlace | Place | "The basic containment relation between a place and another that it contains."[11] |
| hasMap | Map, URL | "A URL to a map of the place."[12] |
| location | Place, PostalAddress, Text, VirtualLocation | "The location of, for example, where an event is happening, where an organization is located, or where an action takes place."[13] |
Common questions
Which format should hours use in Google markup?
openingHoursSpecification with opens and closes times; Google documents the hh:mm:ss format.[5]
How do I mark a business closed for a holiday?
Google shows opens and closes of "00:00" with validFrom and validThrough dates.[5]
Is serviceArea still used?
Schema.org says areaServed supersedes serviceArea.[4]
Related topics
References
- ^ "PostalAddress (type)". Schema.org.
- ^ "GeoCoordinates (type)". Schema.org.
- ^ "OpeningHoursSpecification (type)". Schema.org.
- ^ "areaServed (property)". Schema.org.
- ^ "Local business (LocalBusiness) structured data". Google Search Central.
- ^ "Organization (Organization) structured data". Google Search Central.
- ^ "LocalBusiness (type)". Schema.org.
- ^ "GeoCircle (type)". Schema.org.
- ^ "Introduction to structured data markup in Google Search". Google Search Central.
- ^ "containedInPlace (property)". Schema.org.
- ^ "containsPlace (property)". Schema.org.
- ^ "hasMap (property)". Schema.org.
- ^ "location (property)". Schema.org.