schemamarkup.wikiThe schema.org and structured data reference

LocalBusiness

From schemamarkup.wiki, the sourced reference on schema.org and structured data

LocalBusiness is the schema.org type for "a particular physical business or branch of an organization," with examples such as "a restaurant, a particular branch of a restaurant chain, a branch of a bank, a medical practice, a club, a bowling alley."[1] Schema.org reports it in use on between 1 and 10 million domains.[1] Google uses local business markup for "business details displayed in the Google knowledge panel, including open hours, ratings, directions, and actions to book appointments or order items."[2] This page covers the markup only, not business listings or profiles.

Hierarchy and subtypes

LocalBusiness has two parents: it appears under both Organization and Place in the schema.org hierarchy.[1][3] Its direct subtypes include AnimalShelter, AutomotiveBusiness, ChildCare, Dentist, DryCleaningOrLaundry, EmergencyService, EntertainmentBusiness, FinancialService, FoodEstablishment, GovernmentOffice, HealthAndBeautyBusiness, HomeAndConstructionBusiness, LegalService, LodgingBusiness, MedicalBusiness, ProfessionalService and RealEstateAgent, among others.[1]

Some examples of the chain from Thing down:[4][5][6]

TypePath in schema.orgSchema.org usage
DentistThing > Place > LocalBusiness > MedicalBusiness > Dentist[4]10K-100K domains[4]
PlumberThing > Place > LocalBusiness > HomeAndConstructionBusiness > Plumber[5]10K-100K domains[5]
RestaurantThing > Place > LocalBusiness > FoodEstablishment > Restaurant[6]100K-1M domains[6]

HomeAndConstructionBusiness has the subtypes Electrician, GeneralContractor, HVACBusiness, HousePainter, Locksmith, MovingCompany, Plumber and RoofingContractor.[7] MedicalBusiness covers "different businesses run by health professionals," with subtypes such as Dentist, Dermatology, MedicalClinic, Optician, Pharmacy, Physician and Physiotherapy.[8] Leaf types such as Dentist, Plumber and Restaurant define no properties of their own; they inherit everything from their parents.[4][5][6]

Choosing a type

Google says to "use the most specific LocalBusiness sub-type possible," for example Restaurant, DaySpa or HealthClub.[9] If a business fits several types, Google says to specify them as an array, such as Electrician, Plumber and Locksmith, and notes that additionalType is not supported for this.[9] Because LocalBusiness is a subtype of Organization, Google recommends following the Organization fields as well.[9]

Google's local business properties

Google requires two properties and recommends others:[9]

PropertyStatusGoogle's notes
nameRequiredThe name of the business[9]
addressRequiredA PostalAddress; include as many properties as possible[9]
geoRecommendedGeoCoordinates; latitude and longitude need at least 5 decimal places[9]
openingHoursSpecificationRecommendedOne object or an array; opens and closes in hh:mm:ss format[9]
telephoneRecommendedThe primary contact number, with country and area code[9]
urlRecommendedThe fully-qualified URL of the specific location; must be a working link[9]
priceRangeRecommendede.g. "$10-15" or "$$$"; must be under 100 characters[9]
departmentRecommendedA nested LocalBusiness for a single department[9]
menu, servesCuisineRecommendedFor food establishments[9]
aggregateRating, reviewRecommendedOnly for sites that capture reviews about other local businesses[9]

For departments, Google asks for the store name together with the department name, for example "gMart" and "gMart Pharmacy," unless the department is separately branded.[9] See Address, hours and service areas for address, geo and hours details and Review and AggregateRating for the review rules.

Properties defined on LocalBusiness

Schema.org defines only a few properties on LocalBusiness itself: currenciesAccepted, floorLevel, openingHours, paymentAccepted and priceRange.[1] Its openingHours property takes text such as a weekly time range, with days written as two-letter codes (Mo, Tu, We, Th, Fr, Sa, Su) and times in 24:00 format.[1] The rest come from Organization and Place, including address, geo, hasMap and areaServed.[1] Schema.org describes priceRange as "the price range of the business, for example $$$" and paymentAccepted with examples such as "Cash, Credit Card, Cryptocurrency."[1]

Entity linking properties

Because LocalBusiness is also a Place, it takes place properties as well as organization properties. The ones below connect a business to its location, its services and its other branches. Google's LocalBusiness documentation says additionalType isn't supported and asks for an array of types instead; see additionalType.[9] Pages on specific branches of the hierarchy: MedicalBusiness, LegalService, HomeAndConstructionBusiness, FoodEstablishment, AutomotiveBusiness and FinancialService and ProfessionalService. Places and service areas are covered in places and service areas, and services in Service.

PropertyExpected valuesSchema.org definition (quoted)
containedInPlacePlace"The basic containment relation between a place and one that contains it."[10]
geoGeoCoordinates, GeoShape"The geo coordinates of the place."[11]
areaServedAdministrativeArea, GeoShape, Place, Text"The geographic area where a service or offered item is provided."[12]
hasOfferCatalogOfferCatalog"Indicates an OfferCatalog listing for this Organization, Person, or Service."[13]
makesOfferOffer"A pointer to products or services offered by the organization or person."[14]
departmentOrganization"A relationship between an organization and a department of that organization, also described as an organization (allowing different urls, logos, opening hours)."[15]
branchOf (superseded by parentOrganization)Organization"The larger organization that this local business is a branch of, if any."[16]

Example

<script type="application/ld+json">
{
  "@context": "https://schema.org",
  "@type": "Plumber",
  "name": "Example Plumbing Co.",
  "url": "https://www.example.com/exampletown",
  "telephone": "+1-555-0100",
  "priceRange": "$$",
  "address": {
    "@type": "PostalAddress",
    "streetAddress": "100 Example Street",
    "addressLocality": "Exampletown",
    "addressRegion": "CA",
    "postalCode": "00000",
    "addressCountry": "US"
  },
  "geo": {
    "@type": "GeoCoordinates",
    "latitude": 32.71570,
    "longitude": -117.16110
  },
  "openingHoursSpecification": [{
    "@type": "OpeningHoursSpecification",
    "dayOfWeek": ["Monday","Tuesday","Wednesday","Thursday","Friday"],
    "opens": "08:00:00",
    "closes": "17:00:00"
  }]
}
</script>

The business, address and coordinates are fictional.

Common questions

What are Google's required LocalBusiness properties?

name and address.[9]

Can a business have more than one type?

Yes. Google says to give the types as an array; additionalType is not supported for this.[9]

Can a business mark up its own star rating?

Google says aggregateRating and review are recommended only for sites that capture reviews about other local businesses.[9]

References

  1. ^ "LocalBusiness (type)". Schema.org.
  2. ^ "Structured data markup that Google Search supports (search gallery)". Google Search Central.
  3. ^ "Organization (type)". Schema.org.
  4. ^ "Dentist (type)". Schema.org.
  5. ^ "Plumber (type)". Schema.org.
  6. ^ "Restaurant (type)". Schema.org.
  7. ^ "HomeAndConstructionBusiness (type)". Schema.org.
  8. ^ "MedicalBusiness (type)". Schema.org.
  9. ^ "Local business (LocalBusiness) structured data". Google Search Central.
  10. ^ "containedInPlace (property)". Schema.org.
  11. ^ "geo (property)". Schema.org.
  12. ^ "areaServed (property)". Schema.org.
  13. ^ "hasOfferCatalog (property)". Schema.org.
  14. ^ "makesOffer (property)". Schema.org.
  15. ^ "department (property)". Schema.org.
  16. ^ "branchOf (property)". Schema.org.