GroundingChunkMapsRoute

@Serializable
data class GroundingChunkMapsRoute(val distanceMeters: Int? = null, val duration: Duration? = null, val encodedPolyline: String? = null)

Route information from Google Maps. This data type is not supported in Gemini API.

Constructors

Link copied to clipboard
constructor(distanceMeters: Int? = null, duration: Duration? = null, encodedPolyline: String? = null)

Properties

Link copied to clipboard
val distanceMeters: Int? = null

The total distance of the route, in meters.

Link copied to clipboard
@Serializable(with = DurationStringSerializer::class)
val duration: Duration? = null

The total duration of the route.

Link copied to clipboard
val encodedPolyline: String? = null

An encoded polyline of the route. See https://developers.google.com/maps/documentation/utilities/polylinealgorithm