LocationPoint

data class LocationPoint(lat: Double, lon: Double) : Parcelable

Representation of a lat/lon location on earth. Similar to Google's LatLng. We use our own class for the JUnit tests.

Constructors

LocationPoint
Link copied to clipboard
fun LocationPoint(lat: Double, lon: Double)

Functions

describeContents
Link copied to clipboard
abstract fun describeContents(): Int
equals
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
getBearingTo
Link copied to clipboard
fun getBearingTo(locationPoint: LocationPoint): Double
getDistanceInMetersTo
Link copied to clipboard
fun getDistanceInMetersTo(lp: LocationPoint): Double
hashCode
Link copied to clipboard
open override fun hashCode(): Int
isIn
Link copied to clipboard
fun isIn(polygon: List<LocationPoint>): Boolean
move
Link copied to clipboard
fun move(distanceKm: Double, bearingDegrees: Double): LocationPoint
tileInfo
Link copied to clipboard
fun tileInfo(zoom: Int): TileInformation
toLatLn
Link copied to clipboard
fun toLatLn(): LatLng
toString
Link copied to clipboard
open override fun toString(): String
writeToParcel
Link copied to clipboard
abstract fun writeToParcel(p0: Parcel, p1: Int)

Properties

lat
Link copied to clipboard
val lat: Double
lon
Link copied to clipboard
val lon: Double

Extensions

toTileQueryRequest
Link copied to clipboard
fun LocationPoint.toTileQueryRequest(zoomLevel: Int): <ERROR CLASS>