toggle menu
OpenSRP
androidJvm
switch theme
search in API
engine
/
org.smartregister.fhircore.engine.rulesengine.services
/
LocationService
Location
Service
@
Singleton
class
LocationService
@
Inject
constructor
(
val
context
:
Context
,
val
dispatcherProvider
:
DispatcherProvider
,
val
protoDataStore
:
ProtoDataStore
)
Members
Constructors
Location
Service
Link copied to clipboard
@
Inject
constructor
(
context
:
Context
,
dispatcherProvider
:
DispatcherProvider
,
protoDataStore
:
ProtoDataStore
)
Types
Companion
Link copied to clipboard
object
Companion
Properties
context
Link copied to clipboard
val
context
:
Context
dispatcher
Provider
Link copied to clipboard
val
dispatcherProvider
:
DispatcherProvider
proto
Data
Store
Link copied to clipboard
val
protoDataStore
:
ProtoDataStore
Functions
calculate
Distance
Between
Locations
Link copied to clipboard
fun
calculateDistanceBetweenLocations
(
destination
:
Location
,
currentLocation
:
Location
)
:
String
calculate
Distance
By
Gps
Location
Link copied to clipboard
fun
calculateDistanceByGpsLocation
(
location
:
Resource
)
:
String