[android] GoogleFusedLocationProvider returns the nearest airport location on the cold start #2034

Closed
opened 2022-02-06 16:30:05 +00:00 by rtsisyk · 0 comments
Owner
02-06 19:21:52.108  7085  7085 D BaseLocationProvider: setActive active = false
02-06 19:21:52.131  7085  7085 D LocationProviderFactory: Use fused provider.
02-06 19:21:52.133  7085  7085 D LocationHelper: addListener(): LocationHelper.mCoreLocationListener, forceUpdate: true
02-06 19:21:52.133  7085  7085 D LocationHelper:  - listener count was: 1
02-06 19:21:52.134  7085  7085 D LocationHelper: notifyLocationUpdated(), listener: LocationHelper.mCoreLocationListener
02-06 19:21:52.134  7085  7085 D LocationHelper: No saved location - skip
02-06 19:21:52.141  7085  7085 I LocationUtils: Available location providers: passive network fused gps
02-06 19:21:52.141  7085  7085 D LocationHelper: Old time interval (ms): 0
02-06 19:21:52.141  7085  7085 D LocationHelper: calcLocationUpdatesInterval()
02-06 19:21:52.141  7085  7085 D LocationHelper: start(), params: 3000
02-06 19:21:52.142  7085  7085 D LocationHelper: startInternal(), current provider is 'com.mapswithme.maps.location.GoogleFusedLocationProvider@55c4bc' , my position mode = PENDING_POSITION, mInFirstRun = false
02-06 19:21:52.144  7085  7085 D GoogleFusedLocationProvider: Starting
02-06 19:21:52.144  7085  7085 D BaseLocationProvider: setActive active = true
02-06 19:21:52.146  7085  7085 D GoogleFusedLocationProvider: Request Google fused provider to provide locations at this interval = 3000 ms
02-06 19:21:52.150  7085  7085 D LocationHelper: SUCCESS
02-06 19:21:53.001  7085  7085 D LocationHelper: Resumed in foreground
02-06 19:21:53.002  7085  7085 I LocationHelper: Provider 'com.mapswithme.maps.location.GoogleFusedLocationProvider@55c4bc' is already started
02-06 19:21:53.041  7085  7085 D LocationHelper: notifyMyPositionModeChanged(): PENDING_POSITION
02-06 19:21:53.043  7085  7085 D LocationHelper: onMyPositionModeChanged mode = PENDING_POSITION
02-06 19:21:53.049  7085  7085 D GoogleFusedLocationProvider: Service is available
02-06 19:21:53.120  7085  7085 D GoogleFusedLocationProvider: onLastLocation, location = Location[gps 55.601007,37.264612 hAcc=12.551071 et=+5h0m55s539ms alt=92.325317382812
5 vAcc=18.393877 vel=0.0 sAcc=0.7919596 {Bundle[mParcelledData.dataSize=96]}]
02-06 19:21:54.067  7085  7085 D LocationHelper: notifyMyPositionModeChanged(): FOLLOW
02-06 19:21:54.086  7085  7085 D LocationHelper: onMyPositionModeChanged mode = FOLLOW
02-06 19:21:57.730  7085  7085 D LocationHelper: Set stop location update by user: false
02-06 19:21:57.730  7085  7085 D LocationHelper: switchToNextMode()
02-06 19:21:57.730  7085  7085 D LocationHelper: restart()
02-06 19:21:57.730  7085  7085 D LocationHelper: stopInternal()

55.6010, 37.2646 is VKO (a nearest airport) location. I noted this problem both on old and new (#2023) implementations.

``` 02-06 19:21:52.108 7085 7085 D BaseLocationProvider: setActive active = false 02-06 19:21:52.131 7085 7085 D LocationProviderFactory: Use fused provider. 02-06 19:21:52.133 7085 7085 D LocationHelper: addListener(): LocationHelper.mCoreLocationListener, forceUpdate: true 02-06 19:21:52.133 7085 7085 D LocationHelper: - listener count was: 1 02-06 19:21:52.134 7085 7085 D LocationHelper: notifyLocationUpdated(), listener: LocationHelper.mCoreLocationListener 02-06 19:21:52.134 7085 7085 D LocationHelper: No saved location - skip 02-06 19:21:52.141 7085 7085 I LocationUtils: Available location providers: passive network fused gps 02-06 19:21:52.141 7085 7085 D LocationHelper: Old time interval (ms): 0 02-06 19:21:52.141 7085 7085 D LocationHelper: calcLocationUpdatesInterval() 02-06 19:21:52.141 7085 7085 D LocationHelper: start(), params: 3000 02-06 19:21:52.142 7085 7085 D LocationHelper: startInternal(), current provider is 'com.mapswithme.maps.location.GoogleFusedLocationProvider@55c4bc' , my position mode = PENDING_POSITION, mInFirstRun = false 02-06 19:21:52.144 7085 7085 D GoogleFusedLocationProvider: Starting 02-06 19:21:52.144 7085 7085 D BaseLocationProvider: setActive active = true 02-06 19:21:52.146 7085 7085 D GoogleFusedLocationProvider: Request Google fused provider to provide locations at this interval = 3000 ms 02-06 19:21:52.150 7085 7085 D LocationHelper: SUCCESS 02-06 19:21:53.001 7085 7085 D LocationHelper: Resumed in foreground 02-06 19:21:53.002 7085 7085 I LocationHelper: Provider 'com.mapswithme.maps.location.GoogleFusedLocationProvider@55c4bc' is already started 02-06 19:21:53.041 7085 7085 D LocationHelper: notifyMyPositionModeChanged(): PENDING_POSITION 02-06 19:21:53.043 7085 7085 D LocationHelper: onMyPositionModeChanged mode = PENDING_POSITION 02-06 19:21:53.049 7085 7085 D GoogleFusedLocationProvider: Service is available 02-06 19:21:53.120 7085 7085 D GoogleFusedLocationProvider: onLastLocation, location = Location[gps 55.601007,37.264612 hAcc=12.551071 et=+5h0m55s539ms alt=92.325317382812 5 vAcc=18.393877 vel=0.0 sAcc=0.7919596 {Bundle[mParcelledData.dataSize=96]}] 02-06 19:21:54.067 7085 7085 D LocationHelper: notifyMyPositionModeChanged(): FOLLOW 02-06 19:21:54.086 7085 7085 D LocationHelper: onMyPositionModeChanged mode = FOLLOW 02-06 19:21:57.730 7085 7085 D LocationHelper: Set stop location update by user: false 02-06 19:21:57.730 7085 7085 D LocationHelper: switchToNextMode() 02-06 19:21:57.730 7085 7085 D LocationHelper: restart() 02-06 19:21:57.730 7085 7085 D LocationHelper: stopInternal() ``` [55.6010, 37.2646](https://www.openstreetmap.org/#map=15/55.6010/37.2646) is VKO (a nearest airport) location. I noted this problem both on old and new (#2023) implementations.
This repo is archived. You cannot comment on issues.
No labels
Accessibility
Accessibility
Address
Address
Android
Android
Android Auto
Android Auto
Android Automotive (AAOS)
Android Automotive (AAOS)
API
API
AppGallery
AppGallery
AppStore
AppStore
Battery and Performance
Battery and Performance
Blocker
Blocker
Bookmarks and Tracks
Bookmarks and Tracks
Borders
Borders
Bug
Bug
Build
Build
CarPlay
CarPlay
Classificator
Classificator
Community
Community
Core
Core
CrashReports
CrashReports
Cycling
Cycling
Desktop
Desktop
DevEx
DevEx
DevOps
DevOps
dev_sandbox
dev_sandbox
Directions
Directions
Documentation
Documentation
Downloader
Downloader
Drape
Drape
Driving
Driving
Duplicate
Duplicate
Editor
Editor
Elevation
Elevation
Enhancement
Enhancement
Epic
Epic
External Map Datasets
External Map Datasets
F-Droid
F-Droid
Fonts
Fonts
Frequently User Reported
Frequently User Reported
Fund
Fund
Generator
Generator
Good first issue
Good first issue
Google Play
Google Play
GPS
GPS
GSoC
GSoC
iCloud
iCloud
Icons
Icons
iOS
iOS
Legal
Legal
Linux Desktop
Linux Desktop
Linux packaging
Linux packaging
Linux Phone
Linux Phone
Mac OS
Mac OS
Map Data
Map Data
Metro
Metro
Navigation
Navigation
Need Feedback
Need Feedback
Night Mode
Night Mode
NLnet 2024-06-281
NLnet 2024-06-281
No Feature Parity
No Feature Parity
Opening Hours
Opening Hours
Outdoors
Outdoors
POI Info
POI Info
Privacy
Privacy
Public Transport
Public Transport
Raw Idea
Raw Idea
Refactoring
Refactoring
Regional
Regional
Regression
Regression
Releases
Releases
RoboTest
RoboTest
Route Planning
Route Planning
Routing
Routing
Ruler
Ruler
Search
Search
Security
Security
Styles
Styles
Tests
Tests
Track Recording
Track Recording
Translations
Translations
TTS
TTS
UI
UI
UX
UX
Walk Navigation
Walk Navigation
Watches
Watches
Web
Web
Wikipedia
Wikipedia
Windows
Windows
Won't fix
Won't fix
World Map
World Map
No milestone
No project
No assignees
1 participant
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: organicmaps/organicmaps-tmp#2034
No description provided.