Spécification de disponibilité
Restez organisé à l'aide des collections
Enregistrez et classez les contenus selon vos préférences.
Définition proto
messageAvailability{oneofavailability_status{// The ticket is available.Availableavailable=1;// The ticket is unavailable.Unavailableunavailable=2;}}// Message representing how many seats are still available in the specified// service class.// Partners can:// - provide exact numbers for available, and optionally total seats// - provide a relative availability estimate// - leave the message empty, if all they only know is that at least one seat is// still availablemessageAvailable{// The number of remaining seats.// This is optional. You can pass an empty Available message to just indicate// that at least one seat is available.int32available_seat_count=1;// The total number of seats.int32total_seat_count=2;// An estimate for the relative number of available seats.enumAvailabilityEstimate{// > 70% of total seats are still availableMANY_SEATS_AVAILABLE=1;// 30-70% of total seats are still availableHALF_OF_SEATS_AVAILABLE=2;// 10-30% of total seats are still availableFAIR_NUMBER_OF_SEATS_AVAILABLE=3;// 5 - 10% of total seats are still availableFEW_SEATS_AVAILABLE=4;// < 5% of seats are still availableVERY_FEW_SEATS_AVAILABLE=5;}AvailabilityEstimateavailability_estimate=3;}messageUnavailable{// Different reasons why a ticket could be unavailable.enumReason{// All tickets in this ServiceClass have been booked.BOOKED=1;// This particular service (e.g. train) was extraordinarily canceled.// Permanent service changes should be communicated via GTFS.CANCELED=2;// The trip cannot be priced nor sold at the moment.TEMPORARILY_UNAVAILABLE=3;}Reasonreason=1;}
Sauf indication contraire, le contenu de cette page est régi par une licence Creative Commons Attribution 4.0, et les échantillons de code sont régis par une licence Apache 2.0. Pour en savoir plus, consultez les Règles du site Google Developers. Java est une marque déposée d'Oracle et/ou de ses sociétés affiliées.
Dernière mise à jour le 2025/11/10 (UTC).
[[["Facile à comprendre","easyToUnderstand","thumb-up"],["J'ai pu résoudre mon problème","solvedMyProblem","thumb-up"],["Autre","otherUp","thumb-up"]],[["Il n'y a pas l'information dont j'ai besoin","missingTheInformationINeed","thumb-down"],["Trop compliqué/Trop d'étapes","tooComplicatedTooManySteps","thumb-down"],["Obsolète","outOfDate","thumb-down"],["Problème de traduction","translationIssue","thumb-down"],["Mauvais exemple/Erreur de code","samplesCodeIssue","thumb-down"],["Autre","otherDown","thumb-down"]],["Dernière mise à jour le 2025/11/10 (UTC)."],[],[]]