SubwayStation
SubwayStation is a direct CivicStructure subtype for metro, subway, underground, and light-rail stations. It adds no properties of its own. For mainline rail, use TrainStation.
Full example of schema.org/SubwayStation 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": "SubwayStation",
"name": "Lackawanna Junction",
"address": { "@type": "PostalAddress", "streetAddress": "1 Transit Ctr", "addressLocality": "Dunmore", "addressRegion": "PA", "postalCode": "18512", "addressCountry": "US" },
"geo": { "@type": "GeoCoordinates", "latitude": 41.4265, "longitude": -75.6302 },
"openingHours": "Mo-Su 05:00-01:00",
"url": "https://xoocode.com/transit/lackawanna-junction",
"amenityFeature": [
{ "@type": "LocationFeatureSpecification", "name": "Elevator access", "value": true },
{ "@type": "LocationFeatureSpecification", "name": "Tactile paving", "value": true }
]
}
</script>Minimal valid version
The smallest markup that still produces a valid SubwayStation 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": "SubwayStation",
"name": "Lackawanna Junction",
"geo": { "@type": "GeoCoordinates", "latitude": 41.4265, "longitude": -75.6302 }
}
</script>Google rich results this unlocks
SubwayStation 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). SubwayStation becomes the trunk that the primary type branches off viamainEntityorbreadcrumb. Include it on every page as the backbone of your markup.
Common SubwayStation 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
Using SubwayStation for mainline rail
WrongSubwayStation for an intercity rail stationRightTrainStation for mainline rail; SubwayStation for metro/undergroundTransit planners and routing APIs distinguish metro from mainline rail.
Schema properties in this example
About the example data
Fictional "Lackawanna Junction" metro station on a speculative Dunmore-Scranton light rail line.
Comments
Loading comments...