sdk / com.sygic.travel.sdk.places.model.geo / LatLng
LatLng
data class LatLng :
Parcelable
,
Serializable
Constructors
Name | Summary |
---|---|
<init> | LatLng(lat: Double , lng: Double ) |
Properties
Name | Summary |
---|---|
lat | val lat: Double |
lng | val lng: Double |
Functions
Name | Summary |
---|---|
distanceTo | fun distanceTo(point: LatLng ): Double Returns the approximate shortest distance to the point in meters. Uses Haversine_formula. |
toApiExpression | fun toApiExpression(): String |
withPrecision | fun withPrecision(decimals: Int = 6): LatLng |
Extension Functions
Name | Summary |
---|---|
toQuadTile | fun LatLng .toQuadTile(zoom: Int ): String |