Class GeoPointCollection

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

public final class GeoPointCollection extends GeoObject

Represents a collection of GeoPoints in GeoJSON format.

This class encapsulates a list of GeoPoint instances that form a collection of points. Each point is defined by a GeoPosition which includes the longitude, latitude, and optionally the altitude.

This class also provides a toJson(JsonWriter) method to serialize the collection of points to JSON, and a fromJson(JsonReader) method to deserialize a collection of points from JSON.

Note:A point collection requires at least 2 coordinates for each point.

See Also: