Class GeoLineString

java.lang.Object
com.azure.core.models.GeoObject
com.azure.core.models.GeoLineString
All Implemented Interfaces:
com.azure.json.JsonSerializable<GeoObject>

public final class GeoLineString extends GeoObject

Represents a geometric line string.

This class encapsulates a list of GeoPosition instances that form a line string. A line string is a curve with linear interpolation between points.

This class is useful when you want to work with a line string in a geographic context. For example, you can use it to represent a route on a map or the shape of a geographic feature.

Note: A line string requires at least 2 coordinates.

See Also:
  • Constructor Details

    • GeoLineString

      public GeoLineString(List<GeoPosition> positions)
      Constructs a geometric line.
      Parameters:
      positions - Geometric positions that define the line.
      Throws:
      NullPointerException - If positions is null.
    • GeoLineString

      public GeoLineString(List<GeoPosition> positions, GeoBoundingBox boundingBox, Map<String,Object> customProperties)
      Constructs a geometric line.
      Parameters:
      positions - Geometric positions that define the line.
      boundingBox - Bounding box for the line.
      customProperties - Additional properties of the geometric line.
      Throws:
      NullPointerException - If positions is null.
  • Method Details