mallorca_transit_services 2.3.0
mallorca_transit_services: ^2.3.0 copied to clipboard
An unofficial, public API to access Mallorca's transportation services
CHANGELOG #
2.3.0 #
- Changed
stationCodefrominttoStringingetDeparturesto matchStationmodel and API response format
2.2.0 #
- Added
seatedCapacityandstandingCapacityoptional fields toPassangers - Fixed nullable field handling in
BusStopped.fromJson:actualTimenow safely returnsnullwhen absent instead of throwing - Fixed numeric type coercion in
BusStopped.fromJsonandBusPosition.fromJson:lat,lng, andspeedare now cast via(num).toDouble()to handle integer values from the API
2.1.0 #
- Added new fields to
RouteLine:summerOnly,onDemand,sessions(RouteSession),towns(RouteTown),holidays(RouteHoliday),zoneIds - Added new fields to
Subline:main,distance,towns(RouteTown) - Added new model classes:
RouteSession,RouteTown,RouteHoliday,PickupDropoffType - Added
activeOnlyparameter toRouteLinesApi.getAllLinesto filter out inactive lines - Changed
Station.codefrominttoStringto match the API response format - Changed
StationsApi.getLinesparameter frominttoString
2.0.0 #
BREAKING CHANGE
- Separated models from API logic. Pure data classes (
Departure,Station,RouteLine,Subline,RoutePath) are now insrc/models/. All network calls have moved to dedicated service classes:DeparturesApi.getDepartures(wasDepartures.getDepartures)StationsApi.getAllStations,StationsApi.fromId,StationsApi.getLines(were static methods onStation)RouteLinesApi.getAllLines,RouteLinesApi.getLine,RouteLinesApi.getPdfTimetable,RouteLinesApi.getSublines,RouteLinesApi.getPath(were static methods onRouteLine,Subline, andRoutePath)
- Moved realtime models (
BusPosition,BusStopped,ConnectionClose,RouteStationInfo) intosrc/models/realtime/
1.4.0 #
- Changed
getPdfTimetableto use API instead of web scraping
1.3.0 #
- Made
estimatedDistanceandestimatedArrivaloptional inStationOnRouteto handle cases where this information is not available. - Added location stream to example
1.2.1 #
- Made
locationStreamsyncronous and renamed it tolocationChannelfor clarity. locationStreamis still available as a method that returns the stream.
1.2.0 #
BREAKING CHANGE
- Changed
locationStreamto return aWebSocketChannelinstead of aStream. This allows for more flexibility in handling the WebSocket connection.
1.1.1 #
- Made
RealTripBusStatsoptional inDeparturebecause of endpoint changes
1.1.0 #
- Added
RealTripBusStatstoDeparture
1.0.2 #
- Added a method to get a station by its ID
1.0.1 #
- Fixed README & License
1.0.0 #
- Initial version.