Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 07aaa22b authored by mitulsheth's avatar mitulsheth
Browse files

fix(ETA): ETA is too optimistic and invalid remaining time.

parent 6b327bb8
Loading
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -200,7 +200,7 @@ data class PedestrianRoutingOptions(
    override val costingType: String = "pedestrian",

    // Walking speed
    val walkingSpeed: Double? = null, // km/h
    val walkingSpeed: Double? = 4.2, // km/h

    // Path preferences (factors)
    val walkwayFactor: Double? = null,
+3 −2
Original line number Diff line number Diff line
@@ -1112,9 +1112,10 @@ private fun TurnByTurnRoute(
        }
    }

    val routingMode = routingModeJson?.let {
    val routingMode = routingModeJson?.let { modeString ->
        try {
            Gson().fromJson(it, RoutingMode::class.java)
            RoutingMode.entries.find { it.value.equals(modeString, ignoreCase = true) }
                ?: RoutingMode.AUTO
        } catch (_: Exception) {
            RoutingMode.AUTO
        }