DEVIATION depends on speed
This commit is contained in:
@@ -129,6 +129,8 @@ object Constants {
|
||||
const val RESTAURANT: String ="restaurant"
|
||||
|
||||
/** The initial location to use as an anchor for searches. */
|
||||
|
||||
val widenmayer = location( 11.595721, 48.146113)
|
||||
val homeVogelhart = location(11.5793748, 48.185749)
|
||||
val homeHohenwaldeck = location( 11.594322, 48.1164817)
|
||||
val ioannina = location( 20.826237, 39.690174)
|
||||
@@ -140,7 +142,7 @@ object Constants {
|
||||
val isarring = location( 11.609696, 48.155116)
|
||||
const val NEXT_STEP_THRESHOLD = 500.0
|
||||
|
||||
const val MAXIMAL_SNAP_CORRECTION = 40.0
|
||||
const val MAXIMAL_SNAP_CORRECTION = 50.0
|
||||
|
||||
const val MAXIMAL_ROUTE_DEVIATION = 100.0
|
||||
|
||||
|
||||
@@ -185,9 +185,7 @@ class NavigationViewModel(private val repository: NavigationRepository) : ViewMo
|
||||
place.id = id
|
||||
id += 1
|
||||
}
|
||||
if (place.distance == 0F || place.distance > 500F) {
|
||||
pl.add(place)
|
||||
}
|
||||
pl.add(place)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user