Interface CalculateIsolinesResponse.Builder

  • Method Details

    • arrivalTime

      CalculateIsolinesResponse.Builder arrivalTime(String arrivalTime)

      Time of arrival at the destination. This parameter is returned only if the Destination parameters was provided in the request.

      Time format:YYYY-MM-DDThh:mm:ss.sssZ | YYYY-MM-DDThh:mm:ss.sss+hh:mm

      Examples:

      2020-04-22T17:57:24Z

      2020-04-22T17:57:24+02:00

      Parameters:
      arrivalTime - Time of arrival at the destination. This parameter is returned only if the Destination parameters was provided in the request.

      Time format:YYYY-MM-DDThh:mm:ss.sssZ | YYYY-MM-DDThh:mm:ss.sss+hh:mm

      Examples:

      2020-04-22T17:57:24Z

      2020-04-22T17:57:24+02:00

      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • departureTime

      CalculateIsolinesResponse.Builder departureTime(String departureTime)

      Time of departure from thr origin.

      Time format:YYYY-MM-DDThh:mm:ss.sssZ | YYYY-MM-DDThh:mm:ss.sss+hh:mm

      Examples:

      2020-04-22T17:57:24Z

      2020-04-22T17:57:24+02:00

      Parameters:
      departureTime - Time of departure from thr origin.

      Time format:YYYY-MM-DDThh:mm:ss.sssZ | YYYY-MM-DDThh:mm:ss.sss+hh:mm

      Examples:

      2020-04-22T17:57:24Z

      2020-04-22T17:57:24+02:00

      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • isolineGeometryFormat

      CalculateIsolinesResponse.Builder isolineGeometryFormat(String isolineGeometryFormat)

      The format of the returned IsolineGeometry.

      Default Value:FlexiblePolyline

      Parameters:
      isolineGeometryFormat - The format of the returned IsolineGeometry.

      Default Value:FlexiblePolyline

      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • isolineGeometryFormat

      CalculateIsolinesResponse.Builder isolineGeometryFormat(GeometryFormat isolineGeometryFormat)

      The format of the returned IsolineGeometry.

      Default Value:FlexiblePolyline

      Parameters:
      isolineGeometryFormat - The format of the returned IsolineGeometry.

      Default Value:FlexiblePolyline

      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • isolines

      Calculated isolines and associated properties.

      Parameters:
      isolines - Calculated isolines and associated properties.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • isolines

      Calculated isolines and associated properties.

      Parameters:
      isolines - Calculated isolines and associated properties.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • isolines

      Calculated isolines and associated properties.

      This is a convenience method that creates an instance of the Isoline.Builder avoiding the need to create one manually via Isoline.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to isolines(List<Isoline>).

      Parameters:
      isolines - a consumer that will call methods on Isoline.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • pricingBucket

      CalculateIsolinesResponse.Builder pricingBucket(String pricingBucket)

      The pricing bucket for which the query is charged at.

      Parameters:
      pricingBucket - The pricing bucket for which the query is charged at.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • snappedDestination

      CalculateIsolinesResponse.Builder snappedDestination(Collection<Double> snappedDestination)

      Snapped destination that was used for the Isoline calculation.

      Parameters:
      snappedDestination - Snapped destination that was used for the Isoline calculation.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • snappedDestination

      CalculateIsolinesResponse.Builder snappedDestination(Double... snappedDestination)

      Snapped destination that was used for the Isoline calculation.

      Parameters:
      snappedDestination - Snapped destination that was used for the Isoline calculation.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • snappedOrigin

      CalculateIsolinesResponse.Builder snappedOrigin(Collection<Double> snappedOrigin)

      Snapped origin that was used for the Isoline calculation.

      Parameters:
      snappedOrigin - Snapped origin that was used for the Isoline calculation.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • snappedOrigin

      CalculateIsolinesResponse.Builder snappedOrigin(Double... snappedOrigin)

      Snapped origin that was used for the Isoline calculation.

      Parameters:
      snappedOrigin - Snapped origin that was used for the Isoline calculation.
      Returns:
      Returns a reference to this object so that method calls can be chained together.