GeoLineSegment

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

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.

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

Constructors

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

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
fun intermediatePoint(distance: Distance): GeoCoordinate

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

Properties

Link copied to clipboard
val angle: Double

Calculates the angle (bearing) of the line segment.

Link copied to clipboard
val begin: GeoCoordinate
Link copied to clipboard
val distance: Distance

Provides the geographic distance spanned by this segment.

Link copied to clipboard
val end: GeoCoordinate