Changeset View
Changeset View
Standalone View
Standalone View
app/src/main/java/it/reyboz/bustorino/fragments/LinesDetailFragment.kt
| Show First 20 Lines • Show All 360 Lines • ▼ Show 20 Lines | ): View? { | ||||
| if(!useMQTTPositions){ | if(!useMQTTPositions){ | ||||
| liveBusViewModel.requestDelayedGTFSUpdates(2000) | liveBusViewModel.requestDelayedGTFSUpdates(2000) | ||||
| } | } | ||||
| } | } | ||||
| //download missing tripIDs | //download missing tripIDs | ||||
| liveBusViewModel.tripsGtfsIDsToQuery.observe(viewLifecycleOwner){ | liveBusViewModel.tripsGtfsIDsToQuery.observe(viewLifecycleOwner){ | ||||
| //gtfsPosViewModel.downloadTripsFromMato(dat); | //gtfsPosViewModel.downloadTripsFromMato(dat); | ||||
| MatoTripsDownloadWorker.downloadTripsFromMato( | MatoTripsDownloadWorker.requestMatoTripsDownload( | ||||
| it, requireContext().applicationContext, | it, requireContext().applicationContext, | ||||
| "BusTO-MatoTripDownload" | "BusTO-MatoTripDownload" | ||||
| ) | ) | ||||
| } | } | ||||
| return rootView | return rootView | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 521 Lines • ▼ Show 20 Lines | companion object { | ||||
| //Log.d(DEBUG_TAG,"Stop ${stop.ID} old pos: ($sLat, $sLong), new pos ($latNew,$longNew)") | //Log.d(DEBUG_TAG,"Stop ${stop.ID} old pos: ($sLat, $sLong), new pos ($latNew,$longNew)") | ||||
| return GeoPoint(latNew,longNew) | return GeoPoint(latNew,longNew) | ||||
| } | } | ||||
| private const val DEFAULT_CENTER_LAT = 45.12 | private const val DEFAULT_CENTER_LAT = 45.12 | ||||
| private const val DEFAULT_CENTER_LON = 7.6858 | private const val DEFAULT_CENTER_LON = 7.6858 | ||||
| } | } | ||||
| } | } | ||||
| No newline at end of file | No newline at end of file | ||||
Public contents are in Creative Commons Attribution-ShareAlike 4.0 (CC-BY-SA) or GNU Free Documentation License (at your option) unless otherwise noted. · Contact / Register