``` val (lat, lng) = when (enum) { case1 ->...
# codingconventions
a
Copy code
val (lat, lng) = when (enum) {
    case1 -> { trip.startLatitude to trip.startLongitude }
    case2 -> { trip.endLatitude to trip.endLongitude }
}
Possible variant