GeoCoordinates

open class GeoCoordinates : BaseNativeParcelable

Class containing position in WGS84 coordinates with double precision

Constructors

GeoCoordinates
Link copied to clipboard
open fun GeoCoordinates(latitude: Double, longitude: Double)
Creates a GeoCoordinate with specified latitude and longitude values.
GeoCoordinates
Link copied to clipboard
open fun GeoCoordinates(latitude: Double, longitude: Double, altitude: Double)
Creates a GeoCoordinate with specified latitude, longitude and altitude values.

Functions

describeContents
Link copied to clipboard
abstract fun describeContents(): Int
open fun describeContents(): Int
For documentation, see android.os.Parcelable.describeContents().
distanceTo
Link copied to clipboard
open fun distanceTo(to: GeoCoordinates): Double
Calculates the distance, as measured in meters, between this GeoCoordinate and the specified GeoCoordinate.
equals
Link copied to clipboard
open fun equals(o: Any): Boolean
getAltitude
Link copied to clipboard
open fun getAltitude(): Double
Returns the altitude.
getLatitude
Link copied to clipboard
open fun getLatitude(): Double
Returns the latitude, as measured in degrees, representing north-south coordinate (y-axis on a map).
getLongitude
Link copied to clipboard
open fun getLongitude(): Double
Returns the longitude, as measured in degrees, representing east-west coordinate (x-axis on a map).
hashCode
Link copied to clipboard
open fun hashCode(): Int
isValid
Link copied to clipboard
open fun isValid(): Boolean
Represents whether the GeoCoordinates are valid.
isValidParcelable
Link copied to clipboard
open fun isValidParcelable(): Boolean
If object after recreate from parcel contains all of reference like original object method returntrue.
toString
Link copied to clipboard
open fun toString(): String
For documentation, see java.lang.Object.
writeToParcel
Link copied to clipboard
abstract fun writeToParcel(p: Parcel, p1: Int)
open fun writeToParcel(dest: Parcel, flags: Int)
For documentation, see android.os.Parcelable.writeToParcel().

Properties

CREATOR
Link copied to clipboard
val CREATOR: Parcelable.Creator<GeoCoordinates>
Invalid
Link copied to clipboard
val Invalid: GeoCoordinates
Convenience constant with invalid GeoCoordinates.