fun onLocationChanged(location: Location?) { if (location == null) { return } val distance: Float = getDistanceFromNetwork(location) mTrackerData.writeEntry(location, distance) }
Writes details of location update to tracking file , including recording the distance between this location update and the last network location update