Mapsted Android SDK 26.8.1
Toggle table of contents
androidJvm
Target filter
androidJvm
Switch theme
Search in API
Skip to content
Mapsted Android SDK 26.8.1
android-sdk-ui
/
com.mapsted.ui.utils.common
/
Settings
/
DistanceUnits
Distance
Units
open
class
DistanceUnits
Members
Constructors
Distance
Units
Link copied to clipboard
constructor
(
)
Types
Distance
Units
Type
Def
Link copied to clipboard
@
Retention
(
value
=
SOURCE
)
annotation class
DistanceUnitsTypeDef
Properties
AUTO
Link copied to clipboard
val
AUTO
:
Int
=
0
IMPERIAL
Link copied to clipboard
val
IMPERIAL
:
Int
=
2
KM_
TO_
MILES
Link copied to clipboard
val
KM_TO_MILES
:
Float
=
0.621371f
METERS_
TO_
FEET
Link copied to clipboard
val
METERS_TO_FEET
:
Float
=
3.28084f
METRIC
Link copied to clipboard
val
METRIC
:
Int
=
1
Functions
feet
To
Meters
Link copied to clipboard
open
fun
feetToMeters
(
distanceFt
:
Double
)
:
Double
get
Distance
String
Link copied to clipboard
@
NonNull
open
fun
getDistanceString
(
context
:
Context
,
distanceMeters
:
Float
)
:
String
@
NonNull
open
fun
getDistanceString
(
context
:
Context
,
distanceUnits
:
Int
,
distanceMeters
:
Float
)
:
String
kilometers
To
Miles
Link copied to clipboard
open
fun
kilometersToMiles
(
distanceKm
:
Double
)
:
Double
meters
To
Feet
Link copied to clipboard
open
fun
metersToFeet
(
distanceMeters
:
Double
)
:
Double
miles
To
Kilometers
Link copied to clipboard
open
fun
milesToKilometers
(
distanceMiles
:
Double
)
:
Double