Uses a log file to update the location in the map.
◆ IwLocationManagerLog() [1/2]
◆ IwLocationManagerLog() [2/2]
◆ addListener()
◆ addNmeaListener()
| void addNmeaListener |
( |
NmeaListener |
nmeaListener | ) |
|
add NMEAListener
- Parameters
-
| nmeaListener | - listener to add |
Implements IwLocationManager.
◆ disableLocationUpdates()
| void disableLocationUpdates |
( |
| ) |
|
◆ doBestPossibleUpdate()
| void doBestPossibleUpdate |
( |
| ) |
|
location manager tries to determine the best possible location and updates the API
Implements IwLocationManager.
◆ enableLocationUpdates()
| boolean enableLocationUpdates |
( |
| ) |
|
enable the location manager
- Returns
- true on success - false otherwise ( check permissions in that case)
Implements IwLocationManager.
◆ getCurrentLocation()
| Location getCurrentLocation |
( |
| ) |
|
|
inherited |
- Returns
- the last received location
◆ getCurrentWGS84Position()
◆ getFixTimeMS()
| static final long getFixTimeMS |
( |
Location |
location | ) |
|
|
staticprotectedinherited |
◆ getLocationProvider()
| String getLocationProvider |
( |
| ) |
|
◆ isPaused()
check if nmea parser thread is paused
◆ makeBadGpsIfEnabled()
| Location makeBadGpsIfEnabled |
( |
Location |
location | ) |
|
|
protectedinherited |
Adds noise to a given location
- Parameters
-
| location | - location to add noise to |
- Returns
- location with added noise
◆ notifyGpsFix()
| void notifyGpsFix |
( |
boolean |
isGPSFix | ) |
|
|
protectedinherited |
notify listeners about a gps fix
- Parameters
-
| isGPSFix | if true, a fix is found if false it is lost |
◆ notifyGpsStatusChanged()
| void notifyGpsStatusChanged |
( |
int |
status, |
|
|
Bundle |
bundle |
|
) |
| |
|
protectedinherited |
notify listener about status changed
◆ notifyNewGpsLocation()
| void notifyNewGpsLocation |
( |
Location |
location | ) |
|
|
protectedinherited |
notify listeners about a new gps location
- Parameters
-
| location | - the new received location |
◆ onLocationChanged() [1/2]
| void onLocationChanged |
( |
@NonNull List< Location > |
locations | ) |
|
|
inherited |
◆ onLocationChanged() [2/2]
| void onLocationChanged |
( |
Location |
location | ) |
|
◆ onProviderDisabled()
| void onProviderDisabled |
( |
String |
provider | ) |
|
|
inherited |
◆ onProviderEnabled()
| void onProviderEnabled |
( |
String |
provider | ) |
|
|
inherited |
◆ onStatusChanged()
| void onStatusChanged |
( |
String |
provider, |
|
|
int |
status, |
|
|
Bundle |
extras |
|
) |
| |
◆ passLocationToApi()
| void passLocationToApi |
( |
final Location |
loc | ) |
|
|
protectedinherited |
Passes the given location to the msm API in a queueApiCall
- Parameters
-
◆ pauseLog()
| void pauseLog |
( |
boolean |
pause | ) |
|
pause / continue parser thread execution
◆ reInitLocationProvider()
| void reInitLocationProvider |
( |
| ) |
|
◆ removeListener()
remove location listener
- Parameters
-
| listener | - listener to remove |
Implements IwLocationManager.
◆ setCurrentLocationNotFix()
| void setCurrentLocationNotFix |
( |
| ) |
|
|
inherited |
pass the current location with bad to the api so that the position icon appears grey e.g. if there is no further GPS for a time or GPS gets deactivate this Method can be used to indicate
Implements IwLocationManager.
◆ setJumpPos()
| static void setJumpPos |
( |
int |
val | ) |
|
|
static |
◆ setLastReceivedLocation()
| void setLastReceivedLocation |
( |
Location |
loc | ) |
|
|
protectedinherited |
store last received location
- Parameters
-
◆ setSimulationSpeed()
| void setSimulationSpeed |
( |
int |
factor | ) |
|
◆ setSingleUpdateCnt()
| void setSingleUpdateCnt |
( |
int |
cnt | ) |
|
set single update count when paused
◆ uninit()
◆ LOCATION_PROVIDER_LOG
| final String LOCATION_PROVIDER_LOG = "NMEA Log" |
|
static |
◆ MAPTRIP_PROVIDER
| final String MAPTRIP_PROVIDER = "maptrip" |
|
static |
◆ NO_GPS_PROVIDER
| final String NO_GPS_PROVIDER = "maptrip_no_gps" |
|
static |
The documentation for this class was generated from the following file: