GeoPoint

open class GeoPoint

Defines the (2D) longitude and latitude coordinates of a geographical point.

Inheritors

Constructors

Link copied to clipboard
constructor(lon: Double, lat: Double)
Constructs a new 2D-point
constructor(p: GeoPoint)
Copy constructor

Functions

Link copied to clipboard
open fun getAngle(other: GeoPoint): Double
Returns clockwise oriented angle (in [0, 360] degrees) between this GeoPoint and another one and vertical.
open fun getAngle(lon1: Double, lat1: Double, lon2: Double, lat2: Double): Double
Returns clockwise oriented angle (in [0, 360] degrees) between two points and vertical.
Link copied to clipboard
open fun getDistance(point: GeoPoint): Double
Returns the euclidian distance (in meters) between this GeoPoint and another one.
open fun getDistance(lon1: Double, lat1: Double, lon2: Double, lat2: Double): Double
Returns the euclidian distance (in meters) between two points which are defined by two pairs of longitudes and latitudes.
Link copied to clipboard
Link copied to clipboard
open fun latitude(): Double
Accessor the latitude.
open fun latitude(lat: Double)
Sets the y-coordinate (latitude)..
Link copied to clipboard
open fun longitude(): Double
Accessor to the longitude
open fun longitude(lon: Double)
Sets the longitude.
Link copied to clipboard
open fun setRoadLocation(roadLocation: GeoRoadLocation)
Link copied to clipboard
Link copied to clipboard
open fun toString(): String
Returns the geographical coordinates as a string.
Link copied to clipboard
open fun x(): Double
Accessor to the x-coordinate (longitude)
open fun x(x: Double)
Sets the x-coordinate (longitude).
Link copied to clipboard
open fun y(): Double
Accessor the y-coordinate (latitude).
open fun y(y: Double)
Sets the y-coordinate (latitude)..