GeoLineSegment

data class GeoLineSegment(val begin: GeoPoint, val end: GeoPoint)

Implementation of a line segment that represents a line between the two geographic coordinates.

Important: This is a Public Preview API. It may be changed or removed at any time.

Parameters

begin

The beginning of the line segment.

end

The end of the line segment.

Constructors

Link copied to clipboard
fun GeoLineSegment(begin: GeoPoint, end: GeoPoint)

Functions

Link copied to clipboard
fun fraction(distance: Distance): Double

Returns the fraction of the line segment based on the specified distance in meters.

Link copied to clipboard

Returns a GeoPoint between the begin and the end properties, within the specified distance from the beginning of this segment.

Properties

Link copied to clipboard

Calculates the angle (bearing) of the line segment.

Link copied to clipboard
Link copied to clipboard

Provides the geographic distance spanned by this segment.

Link copied to clipboard