tripkit-android / com.skedgo.tripkit.ui.map.home / StopLoaderArgs

StopLoaderArgs

class StopLoaderArgs

Properties

Name Summary
CELLS_PER_DEGREE 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.static val CELLS_PER_DEGREE:Int
KEY_CELL_IDS static val KEY_CELL_IDS:String
KEY_VISIBLE_BOUND static val KEY_VISIBLE_BOUND:String

Functions

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