Class GroundingChunkMapsRoute

java.lang.Object
com.google.genai.JsonSerializable
com.google.genai.types.GroundingChunkMapsRoute

public abstract class GroundingChunkMapsRoute extends JsonSerializable
Route information from Google Maps. This data type is not supported in Gemini API.
  • Constructor Details

    • GroundingChunkMapsRoute

      public GroundingChunkMapsRoute()
  • Method Details

    • distanceMeters

      public abstract Optional<Integer> distanceMeters()
      The total distance of the route, in meters.
    • duration

      public abstract Optional<Duration> duration()
      The total duration of the route.
    • encodedPolyline

      public abstract Optional<String> encodedPolyline()
      An encoded polyline of the route. See https://developers.google.com/maps/documentation/utilities/polylinealgorithm
    • builder

      public static GroundingChunkMapsRoute.Builder builder()
      Instantiates a builder for GroundingChunkMapsRoute.
    • toBuilder

      public abstract GroundingChunkMapsRoute.Builder toBuilder()
      Creates a builder with the same values as this instance.
    • fromJson

      public static GroundingChunkMapsRoute fromJson(String jsonString)
      Deserializes a JSON string to a GroundingChunkMapsRoute object.