Esempio n. 1
0
class VehiclePositionsSerializer(PbNestedSerializer):
    line = pt.LineSerializer()
    vehicle_journey_positions = pt.VehicleJourneyPositionsSerializer(many=True)
Esempio n. 2
0
class TrafficReportSerializer(PbNestedSerializer):
    network = pt.NetworkSerializer()
    lines = pt.LineSerializer(many=True)
    stop_areas = pt.StopAreaSerializer(many=True)
    vehicle_journeys = pt.VehicleJourneySerializer(many=True)
Esempio n. 3
0
class LineReportSerializer(PbNestedSerializer):
    line = pt.LineSerializer()
    pt_objects = pt.PtObjectSerializer(many=True, display_none=True)
Esempio n. 4
0
class EquipmentReportSerializer(PbNestedSerializer):
    line = pt.LineSerializer()
    stop_area_equipments = pt.StopAreaEquipmentsSerializer(many=True)
Esempio n. 5
0
class LinesSerializer(PTReferentialSerializer):
    lines = pt.LineSerializer(many=True)