GovernmentOffice
GovernmentOffice is a direct LocalBusiness subtype for the business/operational side of government offices: a DMV office, a social-security office, a municipal permits office. For the building itself, use GovernmentBuilding (a CivicStructure subtype). For the parent department/agency, use GovernmentOrganization.
Full example of schema.org/GovernmentOffice json-ld markup
The markup is verified as valid with Rich Results Test from Google.
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "GovernmentOffice",
"name": "Dunmore Municipal Permits Office",
"address": { "@type": "PostalAddress", "streetAddress": "22 Main St, Room 102", "addressLocality": "Dunmore", "addressRegion": "PA", "postalCode": "18512", "addressCountry": "US" },
"telephone": "+1-570-555-2091",
"openingHours": "Mo-Fr 08:30-16:30",
"isAccessibleForFree": true,
"parentOrganization": { "@type": "GovernmentOrganization", "name": "Borough of Dunmore" },
"url": "https://xoocode.com/civic/dunmore-permits-office"
}
</script>Minimal valid version
The smallest markup that still produces a valid GovernmentOffice entity. Use it as the floor. Reach for the advanced example above when you want search engines and AI agents to understand more about your content.
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "GovernmentOffice",
"name": "Dunmore Municipal Permits Office",
"address": { "@type": "PostalAddress", "streetAddress": "22 Main St", "addressLocality": "Dunmore", "addressRegion": "PA", "postalCode": "18512", "addressCountry": "US" }
}
</script>Google rich results this unlocks
GovernmentOffice is a structural type. It does not produce a rich result on its own.
Its value comes from combining it with a primary type whose markup earns a rich result (Article, Product, Event, and so on). GovernmentOffice becomes the trunk that the primary type branches off viamainEntityorbreadcrumb. Include it on every page as the backbone of your markup.
Common GovernmentOffice mistakes
Mistakes that pass validation but silently fail to earn rich results or mislead consumers walking the graph. Avoid these and your markup will be ahead of most sites in the wild.
- 01
GovernmentOffice vs GovernmentOrganization
WrongGovernmentOffice for an entire agency or departmentRightGovernmentOrganization for agencies/departments; GovernmentOffice for specific service officesThe two live in different branches of the vocabulary (Place vs Organization). Pick the right semantic layer.
Schema properties in this example
Also mentioned in 2 other examples
GovernmentOffice also appears in PostOffice, and ServiceChannel. See the full GovernmentOffice schema page for every reference.
About the example data
"Dunmore Municipal Permits Office", a fictional town permitting office.
Comments
Loading comments...