WaypointPath

@JsonClass(generateAdapter = true)
data class WaypointPath(@Json(name = "waypoints") val waypoints: List<Waypoint>, @Json(name = "source") val source: DataSource?, @Json(name = "distanceMeters") val distanceMeters: Double?, @Json(name = "travelMode") val travelMode: TravelMode?, @Json(name = "confidence") val confidence: Double?, @Json(name = "roadSegment") val roadSegment: List<RoadSegment> = emptyList())

Constructors

Link copied to clipboard
constructor(@Json(name = "waypoints") waypoints: List<Waypoint>, @Json(name = "source") source: DataSource?, @Json(name = "distanceMeters") distanceMeters: Double?, @Json(name = "travelMode") travelMode: TravelMode?, @Json(name = "confidence") confidence: Double?, @Json(name = "roadSegment") roadSegment: List<RoadSegment> = emptyList())

Properties

Link copied to clipboard

Confidence of the path. Example: 0.7986568220419046

Link copied to clipboard

Total distance of the path, in meters. Example: 396.34176716755843

Link copied to clipboard

Road segments of the path.

Link copied to clipboard

Source of the location data of the path. Either BACKFILLED or INFERRED. Example: "INFERRED"

Link copied to clipboard

Travel mode of the path. Can be WALK, DRIVE, or BICYCLE. Example: "WALK"

Link copied to clipboard

Waypoints of the path