Schema
Local Business
On this page
Schema.org LocalBusiness
Type: defineLocalBusiness(input?: LocalBusiness)
Describes a business which allows public visitation. Typically used to represent the business 'behind' the website, or on a page about a specific business.
Useful Links
- LocalBusiness - Schema.org
- Local Business Schema Markup - Google Search Central
- LocalBusiness - Yoast
- Choose an Identity - Local Business
Required properties
- name
string
The name of the business. - address
AddressInput- PostalAddress
Physical postal address of the business.
Recommended Properties
- openingHoursSpecification
OpeningHoursInput[]- OpeningHoursSpecification
The specification for when the business is open.
Minimal Example
defineLocalBusiness({
name: 'test',
logo: '/logo.png',
address: {
addressCountry: 'Australia',
postalCode: '2000',
streetAddress: '123 st',
},
openingHoursSpecification: [
{
dayOfWeek: 'Saturday',
opens: '09:30',
closes: '13:30',
},
{
dayOfWeek: ['Monday', 'Tuesday'],
opens: '10:30',
closes: '15:30',
},
]
})
Defaults
- @type:
LocalBusiness - @id:
${canonicalHost}#identity - url:
${canonicalHost} - currenciesAccepted:
${options.defaultCurrency}See global options
Sub-Types
AnimalShelterArchiveOrganizationAutomotiveBusinessChildCareDentistDryCleaningOrLaundryEmergencyServiceEmploymentAgencyEntertainmentBusinessFinancialServiceFoodEstablishmentGovernmentOfficeHealthAndBeautyBusinessHomeAndConstructionBusinessInternetCafeLegalServiceLibraryLodgingBusinessMedicalBusinessProfessionalServiceRadioStationRealEstateAgentRecyclingCenterSelfStorageShoppingCenterSportsActivityLocationStoreTelevisionStationTouristInformationCenterTravelAgency
Resolves
See Global Resolves for full context.
logowill be resolved from a string into an ImageObject and added toimage@typeresolve:Dentist->['Organization', 'LocalBusiness', 'Dentist']
Types
type ValidLocalBusinessSubTypes = 'AnimalShelter'
| 'ArchiveOrganization'
| 'AutomotiveBusiness'
| 'ChildCare'
| 'Dentist'
| 'DryCleaningOrLaundry'
| 'EmergencyService'
| 'EmploymentAgency'
| 'EntertainmentBusiness'
| 'FinancialService'
| 'FoodEstablishment'
| 'GovernmentOffice'
| 'HealthAndBeautyBusiness'
| 'HomeAndConstructionBusiness'
| 'InternetCafe'
| 'LegalService'
| 'Library'
| 'LodgingBusiness'
| 'MedicalBusiness'
| 'ProfessionalService'
| 'RadioStation'
| 'RealEstateAgent'
| 'RecyclingCenter'
| 'SelfStorage'
| 'ShoppingCenter'
| 'SportsActivityLocation'
| 'Store'
| 'TelevisionStation'
| 'TouristInformationCenter'
| 'TravelAgency'
export interface LocalBusinessSimple extends Organization {
'@type'?: ['Organization', 'LocalBusiness'] | ['Organization', 'LocalBusiness', ValidLocalBusinessSubTypes] | ValidLocalBusinessSubTypes
/**
* The primary public telephone number of the business.
*/
'telephone'?: string
/**
* The primary public email address of the business.
*/
'email'?: string
/**
* The primary public fax number of the business.
*/
'faxNumber'?: string
/**
* The price range of the business, represented by a string of dollar symbols (e.g., $, $$, or $$$ ).
*/
'priceRange'?: string
/**
* An array of GeoShape, Place or string definitions.
*/
'areaServed'?: unknown
/**
* A GeoCoordinates object.
*/
'geo'?: unknown
/**
* The VAT ID of the business.
*/
'vatID'?: string
/**
* The tax ID of the business.
*/
'taxID'?: string
/**
* The currency accepted.
*/
'currenciesAccepted'?: string
/**
* The operating hours of the business.
*/
'openingHoursSpecification'?: NodeRelations<OpeningHoursSpecification>
}
Did this page help you?