How to increase time interval in location update?
EleshBaraiya opened this issue · 2 comments
EleshBaraiya commented
How to add time interval
Locus.startLocationUpdates(this) { result ->
result.location?.let(::onLocationUpdate)
result.error?.let(::onError)
}
BirjuVachhani commented
@EleshBaraiya
You can checkout wiki: Here
Locus.configure {
request {
fastestInterval = 1000
priority = LocationRequest.PRIORITY_HIGH_ACCURACY
interval = 1000
maxWaitTime = 2000
}
}
BirjuVachhani commented
I think this answers your question. I'm closing this issue for now. Please create a new issue it if it doesn't work for you.