Skip to content
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
This repository was archived by the owner on Aug 8, 2023. It is now read-only.

Add LocationSource #4331

Closed
Closed

Description

@tobrun

LocationSource is our equivalent of LocationServices.

Activity

  1. added
    Android
    on Mar 15, 2016
  2. modified the milestone: android-v4.1.0 on Mar 15, 2016
  3. added
    SEMVER-MAJOR
    on Apr 19, 2016
  4. mkv123 commented on Jun 28, 2016

    @mkv123

    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.

  5. mkv123 commented on Jul 5, 2016

    @mkv123

    @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.

  6. tobrun commented on Nov 8, 2016

    @tobrun
    MemberAuthor

    @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.

  7. added this to the android-v5.0.0 milestone on Nov 8, 2016
  8. self-assigned this
    on Nov 8, 2016
  9. tobrun commented on Nov 8, 2016

    @tobrun
    MemberAuthor

    Looking a bit more into this it seems that there are two requirements here:

    • general refactor of LocationServices to be a default LocationSource
    • make pluggable system using the LocationSource interface
  10. tobrun commented on Jan 5, 2017

    @tobrun
    MemberAuthor

    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.

  11. zugaldia commented on Jan 13, 2017

    @zugaldia
    Member

    We have recently made some progress here:

    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.

  12. zugaldia commented on Feb 3, 2017

    @zugaldia
    Member

    Fixed via #7892.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

AndroidSEMVER-MAJORrefactor

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions