-
-
Notifications
You must be signed in to change notification settings - Fork 32
Services
themindstorm edited this page Apr 7, 2020
·
2 revisions
Used to get any bus-related data.
-
getNearestStops
->List<BusStop>
(uses user location) -
getAllStops
->List<BusStop>
-
getBusTimings
->List<BusArrival>
Used to get the user's location, and the distance between two points.
-
getLocation
->Position
-
distanceBetween
->double
Adding to favorites and removing from favorites goes through the same actions: checking if it is in the favorites, then adding or removing it appropriately.
Before anything is added or removed from the favorites, it goes through confirmation. So the FavoriteProvider
actions are triggered from the confirmation bottom sheets.
addToFavorite
-
alreadyInFavorites
->bool
-
getFavorites
->List<BusStop>