Versions in this module Expand all Collapse all v0 v0.4.1 Dec 2, 2021 v0.4.0 Nov 24, 2020 Changes in this version + const DateFormat + const DateTimeFormat + const EffectNoService + const EmbeddedAddress + const EmbeddedAdmin + const EmbeddedCommercialMode + const EmbeddedLine + const EmbeddedNetwork + const EmbeddedPOI + const EmbeddedRoute + const EmbeddedStopArea + const EmbeddedStopPoint + const EmbeddedTrip + const JourneyStatusAdditionalService + const JourneyStatusDetour + const JourneyStatusModifiedService + const JourneyStatusOtherEffect + const JourneyStatusReducedService + const JourneyStatusSignificantDelay + const JourneyStatusStopMoved + const JourneyStatusUnknownEffect + const ModeBike + const ModeBikeShare + const ModeCar + const ModeWalking + var EmbeddedTypes = [...]string + var JourneyQualifications = []JourneyQualification + var SectionTypes = map[SectionType]string + type ActivePeriod struct + Begin string + End string + type Address struct + Admins []Admin + Coord Coordinates + HouseNumber uint + ID ID + Label string + Name string + type Admin struct + Coord Coordinates + ID ID + Insee string + Label string + Level int + Name string + ZipCode string + type CO2Emissions struct + Unit string + Value float64 + func (c *CO2Emissions) UnmarshalJSON(b []byte) error + type Calendar struct + ActivePeriods []ActivePeriod + Exceptions []Exception + WeekPattern WeekPattern + type Channel struct + ContentType string + ID ID + Name string + Types []string + type Code struct + Type string + Value string + type CommercialMode struct + ID ID + Name string + PhysicalModes []PhysicalMode + type Company struct + ID string + Name string + type Container struct + EmbeddedType string + ID ID + Name string + Quality int + func (c *Container) Check() error + func (c *Container) Empty() bool + func (c *Container) IsPTObject() bool + func (c *Container) IsPlace() bool + func (c *Container) Object() (Object, error) + func (c *Container) PTObject() (PTObject, error) + func (c *Container) Place() (Place, error) + func (c *Container) UnmarshalJSON(b []byte) error + type Coordinates struct + Latitude float64 + Longitude float64 + func (c *Coordinates) UnmarshalJSON(b []byte) error + func (c Coordinates) ID() ID + type DataFreshness string + const DataFreshnessBaseSchedule + const DataFreshnessRealTime + type Departure struct + DisplayInformations Display + Links []Link + Route Route + StopPoint StopPoint + type Display struct + Code string + Color color.Color + CommercialMode ID + Description string + Direction string + Equipments []Equipment + Headsign string + Label string + Name string + Network string + PhysicalMode ID + TextColor color.Color + TripShortName string + func (d *Display) UnmarshalJSON(b []byte) error + type Disruption struct + Category string + Cause string + DisruptionID string + ID ID + Impacted []ImpactedObject + InputDisruptionID ID + InputImpactID ID + LastUpdated time.Time + Messages []Message + Periods []Period + Severity Severity + Status string + func (d *Disruption) UnmarshalJSON(b []byte) error + type Effect string + type Equipment string + const EquipmentAirConditioned + const EquipmentAppropriateEscort + const EquipmentAppropriateSignage + const EquipmentAudibleAnnouncement + const EquipmentBikeAccepted + const EquipmentBikeDepot + const EquipmentElevator + const EquipmentEscalator + const EquipmentSchoolVehicle + const EquipmentSheltered + const EquipmentVisualAnnouncement + const EquipmentWheelchairAccessibility + const EquipmentWheelchairBoarding + func (eq Equipment) Known() bool + type ErrInvalidContainer struct + NoEmbeddedType bool + NoID bool + UnknownEmbeddedType bool + func (err ErrInvalidContainer) Error() string + type Exception struct + Datetime string + Type string + type Fare struct + Found bool + Total currency.Amount + func (f *Fare) UnmarshalJSON(b []byte) error + type FareZone struct + Name string + type GeoJSON struct + Type string + type ID string + const PhysicalModeAir + const PhysicalModeBoat + const PhysicalModeBus + const PhysicalModeBusRapidTransit + const PhysicalModeCoach + const PhysicalModeFerry + const PhysicalModeFunicular + const PhysicalModeLocalTrain + const PhysicalModeLongDistanceTrain + const PhysicalModeMetro + const PhysicalModeRapidTransit + const PhysicalModeShuttle + const PhysicalModeTaxi + const PhysicalModeTrain + const PhysicalModeTramway + func (id ID) Check() error + func (id ID) Type() string + type ImpactedObject struct + ImpactedSection ImpactedSection + ImpactedStops []ImpactedStop + Object Container + type ImpactedSection struct + From Container + To Container + type ImpactedStop struct + AmendedArrivalTime string + AmendedDepartureTime string + ArrivalStatus string + BaseArrival string + BaseArrivalTime string + BaseDeparture string + BaseDepartureTime string + Cause string + DepartureStatus string + Effect string + IsDetour bool + NewArrival string + NewDeparture string + Point StopPoint + StopTimeEffect string + type Isochrone geojson.Geometry + type Journey struct + Arrival time.Time + CO2Emissions CO2Emissions + Departure time.Time + Duration time.Duration + Fare Fare + From Container + Requested time.Time + Sections []Section + Status Effect + To Container + Transfers uint + Type JourneyQualification + func (j *Journey) UnmarshalJSON(b []byte) error + type JourneyPattern struct + ID string + Name string + type JourneyQualification string + const JourneyBest + const JourneyCar + const JourneyComfort + const JourneyFastest + const JourneyLessBike + const JourneyLessBikeShare + const JourneyLessWalk + const JourneyNoPTBike + const JourneyNoPTBikeShare + const JourneyNoPTWalk + const JourneyRapid + type Line struct + ClosingTime struct{ ... } + Code string + Color color.Color + CommercialMode CommercialMode + ID ID + Name string + OpeningTime struct{ ... } + PhysicalModes []PhysicalMode + Routes []Route + func (l *Line) UnmarshalJSON(b []byte) error + type Link struct + Href string + Rel string + Templated bool + Type string + type Message struct + Channel *Channel + Text string + type Network struct + ID string + Name string + type Object interface + type POI struct + ID ID + Label string + Name string + Type POIType + type POIType struct + ID ID + Name string + type PTDateTime struct + Arrival time.Time + Departure time.Time + func (ptdt *PTDateTime) UnmarshalJSON(b []byte) error + type PTMethod string + const PTMethodDateTimeEstimated + const PTMethodODTStopPoint + const PTMethodODTStopTime + const PTMethodODTZone + const PTMethodRegular + type PTObject interface + type PTObjectDisruptions struct + EmbeddedType string + ID string + Name string + Quality int + Trip Trip + type PathSegment struct + Direction int + Duration time.Duration + Length uint + Name string + func (ps *PathSegment) UnmarshalJSON(b []byte) error + type Period struct + Begin time.Time + End time.Time + func (p *Period) UnmarshalJSON(b []byte) error + type PhysicalMode struct + CommercialModes []CommercialMode + ID ID + Name string + type Place interface + type Region struct + DatasetCreation time.Time + Error string + ID ID + LastLoaded time.Time + Name string + ProductionEnd time.Time + ProductionStart time.Time + Shape *geom.MultiPolygon + Status string + func (r *Region) UnmarshalJSON(b []byte) error + type Route struct + Direction Container + Frequence bool + GeoJSON GeoJSON + ID ID + Line Line + Name string + PhysicalModes []PhysicalMode + func (r *Route) UnmarshalJSON(b []byte) error + type Section struct + Additional []PTMethod + Arrival time.Time + Departure time.Time + Display Display + Duration time.Duration + From Container + Geo *geom.LineString + ID ID + Mode string + Path []PathSegment + StopTimes []StopTime + To Container + Type SectionType + func (s *Section) UnmarshalJSON(b []byte) error + type SectionType string + const SectionBikeSharePutBack + const SectionBikeShareRent + const SectionBoarding + const SectionCrowFly + const SectionLanding + const SectionOnDemandTransport + const SectionPublicTransport + const SectionStayIn + const SectionStreetNetwork + const SectionTransfer + const SectionWaiting + type Severity struct + Color color.Color + Effect Effect + Name string + Priority *int + func (s *Severity) UnmarshalJSON(b []byte) error + type StopArea struct + Admins []Admin + Coord Coordinates + ID ID + Label string + Name string + StopPoints []StopPoint + Timezone string + type StopDateTime struct + ArrivalDateTime string + BaseArrivalDateTime string + BaseDepartureDateTime string + DataFreshness string + DepartureDateTime string + Links []Link + type StopPoint struct + Admins []Admin + CommercialModes []CommercialMode + Coord Coordinates + Equipments []Equipment + FareZone FareZone + ID ID + Label string + Links []Link + Name string + PhysicalModes []PhysicalMode + StopArea *StopArea + type StopTime struct + DepartureTime string + DropOffAllowed bool + Headsign string + PTDateTime PTDateTime + PickupAllowed bool + StopPoint StopPoint + UTCArrivalTime string + UTCDepartureTime string + type TrafficReport struct + Lines []Line + Network Network + StopAreas []StopArea + type TravelerType string + const TravelerFastWalker + const TravelerInWheelchair + const TravelerSlowWalker + const TravelerStandard + const TravelerWithLuggage + type Trip struct + ID ID + Name string + type UnmarshalError struct + JSON []byte + Key string + Message string + Name string + Type string + Underlying error + Value interface{} + func (err UnmarshalError) Cause() error + func (err UnmarshalError) Error() string + type ValidityPattern struct + BeginningDate string + Days string + type VehicleJourney struct + Calendars []Calendar + Codes []Code + Disruptions []Disruption + Headsign string + ID string + JourneyPattern JourneyPattern + Name string + StopTimes []StopTime + Trip Trip + ValidityPattern ValidityPattern + type WeekPattern struct + Friday bool + Monday bool + Saturday bool + Sunday bool + Thursday bool + Tuesday bool + Wednesday bool