DEVIATION depends on speed

This commit is contained in:
Dimitris
2026-06-05 15:01:05 +02:00
parent df1ceb5c44
commit a3b22c386b
13 changed files with 63 additions and 50 deletions
+1 -1
View File
@@ -12,7 +12,7 @@ plugins {
android {
namespace = "com.kouros.data"
compileSdk = 36
compileSdk = 37
val properties = Properties().apply {
@@ -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)
}
}
}