Google-friendly structured data with NAICS industry classification — www.jsonldtool.com
A trip on a commercial train line.
TrainTrip is a schema.org type. Use the generator above to build TrainTrip structured data as JSON-LD, Microdata, RDFa, XML or Open Graph, then paste it into your page to help Google, Bing and AI answer engines understand your content.
See the official definition at schema.org/TrainTrip.
Properties defined directly on TrainTrip:
| Property | Expected type | Description |
|---|---|---|
arrivalPlatform | Text | The platform where the train arrives. |
arrivalStation | Text | The station where the train trip ends. |
departurePlatform | Text | The platform from which the train departs. |
departureStation | Text | The station from which the train departs. |
trainName | Text | The name of the train (e.g. The Orient Express). |
trainNumber | Text | The unique identifier for the train. |
TrainTrip also inherits properties from Trip, Intangible, Thing.
| Property | Expected type | Description |
|---|---|---|
arrivalTime | DateTime | The expected arrival time. |
departureTime | Time | The expected departure time. |
itinerary | Text | Destination(s) ( [[Place]] ) that make up a trip. For a trip where destination order is important u… |
offers | Text | An offer to provide this item—for example, an offer to sell a product, rent the DVD of a mov… |
partOfTrip | Text | Identifies that this [[Trip]] is a subTrip of another Trip. For example Day 1, Day 2, etc. of a mu… |
provider | Text | The service provider, service operator, or service performer; the goods producer. Another party (a … |
subTrip | Text | Identifies a [[Trip]] that is a subTrip of this Trip. For example Day 1, Day 2, etc. of a multi-da… |
tripOrigin | Text | The location of origin of the trip, prior to any destination(s). |
additionalType | URL | An additional type for the item, typically used for adding more specific types from external vocabu… |
alternateName | Text | An alias for the item. |
description | Text | A description of the item. |
disambiguatingDescription | Text | A sub property of description. A short description of the item used to disambiguate from other, sim… |
identifier | URL | The identifier property represents any kind of identifier for any kind of [[Thing]], such as ISBNs,… |
image | URL | An image of the item. This can be a [[URL]] or a fully described [[ImageObject]]. |
mainEntityOfPage | URL | Indicates a page (or other CreativeWork) for which this thing is the main entity being described. S… |
name | Text | The name of the item. |
owner | Text | A person or organization who owns this Thing. |
potentialAction | Text | Indicates a potential Action, which describes an idealized action in which this thing would play an… |
sameAs | URL | URL of a reference Web page that unambiguously indicates the item's identity. E.g. the URL of the i… |
subjectOf | Text | A CreativeWork or Event about this Thing. |
url | URL | URL of the item. |
{
"@context": "https://schema.org",
"@type": "TrainTrip",
"name": "Example TrainTrip"
}TrainTrip (schema.org/TrainTrip) is a structured-data type used to describe a TrainTrip to search engines and AI systems. Adding TrainTrip JSON-LD to a page helps Google, Bing and answer engines understand the content and can enable rich results.
Fill in the TrainTrip fields in this tool, copy the generated JSON-LD, and paste it inside a <script type="application/ld+json"> tag in the <head> or <body> of your page. You can also export Microdata, RDFa, XML or Open Graph.
Yes. jsonldtool.com is a free TrainTrip schema generator and validator with no sign-up required.