Package com.google.genai.types
Class GroundingChunkMapsRoute
-
- All Implemented Interfaces:
public abstract class GroundingChunkMapsRoute extends JsonSerializable
Route information from Google Maps. This data type is not supported in Gemini API.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public abstract classGroundingChunkMapsRoute.BuilderBuilder for GroundingChunkMapsRoute.
-
Field Summary
Fields Modifier and Type Field Description public final static StringMAX_READ_LENGTH_PROPERTY
-
Constructor Summary
Constructors Constructor Description GroundingChunkMapsRoute()
-
Method Summary
Modifier and Type Method Description abstract Optional<Integer>distanceMeters()The total distance of the route, in meters. abstract Optional<Duration>duration()The total duration of the route. abstract Optional<String>encodedPolyline()An encoded polyline of the route. static GroundingChunkMapsRoute.Builderbuilder()Instantiates a builder for GroundingChunkMapsRoute. abstract GroundingChunkMapsRoute.BuildertoBuilder()Creates a builder with the same values as this instance. static GroundingChunkMapsRoutefromJson(String jsonString)Deserializes a JSON string to a GroundingChunkMapsRoute object. -
Methods inherited from class com.google.genai.JsonSerializable
fromJsonNode, fromJsonString, objectMapper, setMaxReadLength, stringToJsonNode, toJson, toJsonNode, toJsonString -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
distanceMeters
abstract Optional<Integer> distanceMeters()
The total distance of the route, in meters.
-
encodedPolyline
abstract Optional<String> encodedPolyline()
An encoded polyline of the route. See https://developers.google.com/maps/documentation/utilities/polylinealgorithm
-
builder
static GroundingChunkMapsRoute.Builder builder()
Instantiates a builder for GroundingChunkMapsRoute.
-
toBuilder
abstract GroundingChunkMapsRoute.Builder toBuilder()
Creates a builder with the same values as this instance.
-
fromJson
static GroundingChunkMapsRoute fromJson(String jsonString)
Deserializes a JSON string to a GroundingChunkMapsRoute object.
-
-
-
-