summaryrefslogtreecommitdiff
path: root/android-app/app/src/main/kotlin/com/example/androidapp/routing/RoutePoint.kt
blob: 02988d16b07cd7a404f0d15b8c16edb7ceb63f61 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
package com.example.androidapp.routing

/**
 * A single point in the isochrone routing tree.
 *
 * @param lat         Latitude (decimal degrees).
 * @param lon         Longitude (decimal degrees).
 * @param timestampMs UNIX time in milliseconds when this position is reached.
 * @param parent      The previous [RoutePoint] (null for the start point).
 */
data class RoutePoint(
    val lat: Double,
    val lon: Double,
    val timestampMs: Long,
    val parent: RoutePoint? = null
)