Created
January 21, 2023 23:12
-
-
Save huslage/7a9d784b401cdb127ccf885da6b9c500 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Represent the following using the https://schema.org/Trip JSON schema. Use IATA codes for transport types and GDS codes for hotel chains. | |
i'll be going from rdu-sfo next monday, sfo-pdx on thursday and returning home on saturday. i will take the train from pdx-seattle on friday morning and fly home from seattle. i need hotels in downtown sf, near hawthorne in pdx and near belltown in seattle. i prefer alaska airlines and hyatt hotels. | |
{ | |
"@context": "https://schema.org", | |
"@type": "Trip", | |
"name": "My Trip", | |
"origin": { | |
"@type": "Place", | |
"name": "Raleigh-Durham International Airport", | |
"iataCode": "RDU" | |
}, | |
"destination": { | |
"@type": "Place", | |
"name": "Seattle-Tacoma International Airport", | |
"iataCode": "SEA" | |
}, | |
"departureTime": "2020-09-14T00:00:00-04:00", | |
"arrivalTime": "2020-09-19T00:00:00-07:00", | |
"transport": [ | |
{ | |
"@type": "TrainTrip", | |
"departureTime": "2020-09-18T00:00:00-07:00", | |
"arrivalTime": "2020-09-18T00:00:00-07:00", | |
"departureStation": { | |
"@type": "TrainStation", | |
"name": "Portland Union Station", | |
"iataCode": "PDX" | |
}, | |
"arrivalStation": { | |
"@type": "TrainStation", | |
"name": "Seattle King Street Station", | |
"iataCode": "SEA" | |
} | |
}, | |
{ | |
"@type": "Flight", | |
"departureTime": "2020-09-19T00:00:00-07:00", | |
"arrivalTime": "2020-09-19T00:00:00-04:00", | |
"departureAirport": { | |
"@type": "Airport", | |
"name": "Seattle-Tacoma International Airport", | |
"iataCode": "SEA" | |
}, | |
"arrivalAirport": { | |
"@type": "Airport", | |
"name": "Raleigh-Durham International Airport", | |
"iataCode": "RDU" | |
}, | |
"airline": { | |
"@type": "Airline", | |
"name": "Alaska Airlines", | |
"iataCode": "AS" | |
} | |
} | |
], | |
"accommodation": [ | |
{ | |
"@type": "LodgingBusiness", | |
"name": "Hyatt Regency San Francisco", | |
"gdsCode": "HYT", | |
"location": { | |
"@type": "Place", | |
"name": "Downtown San Francisco" | |
} | |
}, | |
{ | |
"@type": "LodgingBusiness", | |
"name": "Hyatt House Portland/Hawthorne", | |
"gdsCode": "HYT", | |
"location": { | |
"@type": "Place", | |
"name": "Hawthorne, Portland" | |
} | |
}, | |
{ | |
"@type": "LodgingBusiness", | |
"name": "Hyatt Place Seattle/Downtown", | |
"gdsCode": "HYT", | |
"location": { | |
"@type": "Place", | |
"name": "Belltown, Seattle" | |
} | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment