Schema

Local Business

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.

Required properties

  • name string
    The name of the business.
  • address AddressInput - PostalAddress
    Physical postal address of the business.

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

  • 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

Resolves

See Global Resolves for full context.

  • logo will be resolved from a string into an ImageObject and added to image
  • @type resolve: 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>
}