You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
Repository navigation
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
Currently the user location marker is internally hardcoded to use the device's GPS positioning to define where it is. Imho this is architecurally a bit at odds with separating data and visualization, but also in a very practical sense it makes the position marker very inflexible.
For example let's say you want a virtual walk through of the route, like a play button to preview your journey. Currently we'd have to re-implement the user position marker for this functionality, instead of simply setting its location. Another case would be for using any 3rd party location source, ranging from IP address to airplane schedules to qr codes.
@tobrun Btw, why the SEMVER-MAJOR tag? If implemented in the same way as in google-play-services, where you provide a default one, but allow overriding it, it wouldn't break API as far as I can tell.
@mkv123 sorry for only getting back to you now. The initial focus of this ticket was to rename LocationServices to LocationSource (reason behind the semver-label). Since posting this some requirements have changed and including a pluggable system for anything location related is on our list of long term improvements to the SDK.
Been working on this a bit and need to conclude that this requires a bigger lift as initially thought. Making the system pluggable requires bigger refactors to LocationServices and Telemetry. We ideally pick this up when we introduce a separate telemetry module. I'm going to submit some fixes that I made to telemetry separately.
general refactor of LocationServices to be a default LocationSource
With mapbox/mapbox-java#269 we now have an abstract LocationEngine with sample implementations for Lost and Play Services. We could tweak the former as the default implementation for our LocationSource. It conforms to LocationSource while expanding its functionality.
make pluggable system using the LocationSource interface
That's achieved with the newly introduced LocationEngine interface.
Activity
mkv123 commentedon Jun 28, 2016
Currently the user location marker is internally hardcoded to use the device's GPS positioning to define where it is. Imho this is architecurally a bit at odds with separating data and visualization, but also in a very practical sense it makes the position marker very inflexible.
For example let's say you want a virtual walk through of the route, like a play button to preview your journey. Currently we'd have to re-implement the user position marker for this functionality, instead of simply setting its location. Another case would be for using any 3rd party location source, ranging from IP address to airplane schedules to qr codes.
mkv123 commentedon Jul 5, 2016
@tobrun Btw, why the SEMVER-MAJOR tag? If implemented in the same way as in google-play-services, where you provide a default one, but allow overriding it, it wouldn't break API as far as I can tell.
tobrun commentedon Nov 8, 2016
@mkv123 sorry for only getting back to you now. The initial focus of this ticket was to rename
LocationServicestoLocationSource(reason behind thesemver-label). Since posting this some requirements have changed and including a pluggable system for anything location related is on our list of long term improvements to the SDK.tobrun commentedon Nov 8, 2016
Looking a bit more into this it seems that there are two requirements here:
tobrun commentedon Jan 5, 2017
Been working on this a bit and need to conclude that this requires a bigger lift as initially thought. Making the system pluggable requires bigger refactors to LocationServices and Telemetry. We ideally pick this up when we introduce a separate telemetry module. I'm going to submit some fixes that I made to telemetry separately.
zugaldia commentedon Jan 13, 2017
We have recently made some progress here:
With mapbox/mapbox-java#269 we now have an abstract
LocationEnginewith sample implementations for Lost and Play Services. We could tweak the former as the default implementation for ourLocationSource. It conforms toLocationSourcewhile expanding its functionality.That's achieved with the newly introduced
LocationEngineinterface.zugaldia commentedon Feb 3, 2017
Fixed via #7892.