diff options
author | dakkar <dakkar@thenautilus.net> | 2013-05-27 17:01:20 +0100 |
---|---|---|
committer | dakkar <dakkar@thenautilus.net> | 2013-05-27 17:01:20 +0100 |
commit | 47d24b4cbea6d8364d0718e31cfd2fb92187b7ea (patch) | |
tree | af6fe6c112f4dd3a87d1606db6d03b48eeeccccb /lib/WebService/TFL/Bus/Fields.pm | |
parent | include busses in html (diff) | |
download | HomePanel-47d24b4cbea6d8364d0718e31cfd2fb92187b7ea.tar.gz HomePanel-47d24b4cbea6d8364d0718e31cfd2fb92187b7ea.tar.bz2 HomePanel-47d24b4cbea6d8364d0718e31cfd2fb92187b7ea.zip |
factored TFL client
Diffstat (limited to 'lib/WebService/TFL/Bus/Fields.pm')
-rw-r--r-- | lib/WebService/TFL/Bus/Fields.pm | 77 |
1 files changed, 77 insertions, 0 deletions
diff --git a/lib/WebService/TFL/Bus/Fields.pm b/lib/WebService/TFL/Bus/Fields.pm new file mode 100644 index 0000000..b3d555f --- /dev/null +++ b/lib/WebService/TFL/Bus/Fields.pm @@ -0,0 +1,77 @@ +package WebService::TFL::Bus::Fields; +use strict; +use warnings; + +sub stop_return_fields { + qw( + StopPointName + StopID + StopCode1 + StopCode2 + StopPointType + Towards + Bearing + StopPointIndicator + StopPointState + Latitude + Longitude + ); +} + +sub prediction_return_fields { + stop_return_fields(), + qw( + VisitNumber + LineID + LineName + DirectionID + DestinationText + DestinationName + VehicleID + TripID + RegistrationNumber + EstimatedTime + ExpireTime + ), +} + +sub flexible_return_fields { + stop_return_fields, + qw( + MessageUUID + MessageType + MessagePriority + MessageText + StartTime + ExpireTime + ), +} + +sub query_fields { + qw( + StopAlso + Circle + StopPointName + StopID + StopCode1 + StopCode2 + StopPointType + Towards + Bearing + StopPointIndicator + StopPointState + VisitNumber + LineID + LineName + DirectionID + DestinationText + DestinationName + VehicleID + TripID + RegistrationNumber + MessageType + MessagePriority + ); +} + +1; |