/tripkit/TripKitAndroidUI/com.skedgo.tripkit.ui.map.home/StopLoaderArgs

StopLoaderArgs

\ object StopLoaderArgs

Properties

Name Summary
CELLS_PER_DEGREE const val CELLS_PER_DEGREE: Int = 75
FIXME: Why 75? This was taken from the iOS impl. If we change into something else rather than 75, it might produce cell ids incompatible with locations.json API.
KEY_CELL_IDS const val KEY_CELL_IDS: String
KEY_VISIBLE_BOUND const val KEY_VISIBLE_BOUND: String

Functions

Name Summary
createStopLoaderSelection fun createStopLoaderSelection(cellsIdSize: Int): String
createStopLoaderSelectionArgs fun createStopLoaderSelectionArgs(cellIds: List<String>, visibleBounds: LatLngBounds): Array<String>
getCellIdsByCameraZoom fun getCellIdsByCameraZoom(region: Region, geoPoint: GeoPoint, zoom: Float, span: LatLngBounds): ArrayList<String>
getCellIdsForLoading fun getCellIdsForLoading(cellIds: List<String>, region: Region): ArrayList<String>
Defines proper cell ids so that the loader can load up stops that should be visible at corresponding level.
getCellIdsForLocalLevel fun getCellIdsForLocalLevel(geoPoint: GeoPoint, span: LatLngBounds): ArrayList<String>
fun getCellIdsForLocalLevel(lat: Double, lon: Double, latSpan: Double, lonSpan: Double): ArrayList<String>
getCellIdsForRegionalLevel fun getCellIdsForRegionalLevel(region: Region): ArrayList<String>
newArgsForStopsLoader fun newArgsForStopsLoader(cellIds: List<String>, region: Region, visibleBounds: LatLngBounds): Pair<List<String>, LatLngBounds>