GeoLineSegment

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

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

Parameters

begin

The beginning of the line segment.

end

The end of the line segment.

Constructors

Link copied to clipboard
constructor(begin: GeoPoint, end: GeoPoint)

Functions

Link copied to clipboard
fun fraction(distance: <Error class: unknown class>): Double

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

Link copied to clipboard
fun intermediatePoint(distance: <Error class: unknown class>): GeoPoint

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
val angle: <Error class: unknown class>

Calculates the angle (bearing) of the line segment.

Link copied to clipboard
Link copied to clipboard
val distance: <Error class: unknown class>

Provides the geographic distance spanned by this segment.

Link copied to clipboard