1. 04 Jan, 2019 2 commits
  2. 16 Sep, 2018 1 commit
  3. 03 May, 2018 1 commit
  4. 22 Apr, 2018 1 commit
  5. 18 Apr, 2018 1 commit
  6. 28 Jan, 2016 1 commit
  7. 10 Sep, 2015 1 commit
    • Zeeshan Ali's avatar
      locator: Prefer more recent location update · 18fd2669
      Zeeshan Ali authored
      If we get a new location update with timestamp older than existing
      location, let's ignore that.
      
      This solves the issue of wifi-based geolocation getting overwritten by
      older location from network NMEA source, just cause it was more
      accurate.
      18fd2669
  8. 09 Sep, 2015 1 commit
  9. 04 Sep, 2015 1 commit
    • Zeeshan Ali's avatar
      locator: Append newly activated source to list · b71f756e
      Zeeshan Ali authored
      Don't forget to add the newly activated source to the private list of
      active sources, otherwise it won't be stopped when it's accuracy level
      changes to none or greater than max accuracy.
      b71f756e
  10. 23 Aug, 2015 2 commits
  11. 09 Apr, 2015 2 commits
    • Zeeshan Ali's avatar
      locator: Don't auto-compute speed & heading · cd84f826
      Zeeshan Ali authored
      Now that the actual sources themselves ensure that speed and heading are
      computed and set on new locations whenever possible, there is no reason
      for Locator to do this at all anymore. Otherwise, we still end up with
      these properties being computed by comparison of locations from two
      different sources if the latest location is the first location from a
      source.
      
      https://bugs.freedesktop.org/show_bug.cgi?id=89852
      cd84f826
    • Zeeshan Ali's avatar
      locator: Move speed/heading setting to source · a5596dd7
      Zeeshan Ali authored
      Move calculation and setting of speed and heading to
      gclue_location_source_set_location(). We ensure that speed and heading
      are only calculated if they are not already set on the new location
      object so that they are not re-calculated each time location is set from
      one source to another (keeping in mind that Locator is also a
      LocationSource subclass).
      
      This change would mean that speed and heading are only set by the source
      it originates from. i-e speed and heading are not calculated by comparing
      location from two different sources, which would typically be wrong as
      different locations from different sources just means the same location
      but with different accuracies. For example, WiFi source will put me at
      Crystal Palace but soon after GPS will put me at Westow House (a pub in
      Crystal Palace) but I'm not moving so deriving speed and heading from
      these two locations would be wrong.
      
      As a positive side-effect, this would make it possible for sources to
      provide the speed and accuracy themselves. This would be at least
      possible for GPS (see bug#89907).
      
      Known issue: We still end up with these properties being computed by
      Locator by comparison of locations from two different sources if the
      latest location is the first location from a source. We solve this issue
      in a following patch.
      
      https://bugs.freedesktop.org/show_bug.cgi?id=89852
      a5596dd7
  12. 01 Apr, 2015 1 commit
  13. 31 Mar, 2015 1 commit
    • Fabrice Bellet's avatar
      locator: Most accurate source first · 83c89a36
      Fabrice Bellet authored
      We now maintain the list of sources sorted based on their accuracy
      level. This allows to start the source providing the most accurate
      location first. When multiple sources are already active due to the
      activity of an existing client, the start of another client will
      hopefully give it the best possible location only. It also works better
      when clients work in "single shot" mode, and use only the first location
      received from geoclue.
      
      https://bugs.freedesktop.org/show_bug.cgi?id=89719
      83c89a36
  14. 26 Mar, 2015 3 commits
  15. 28 Jun, 2014 3 commits
    • Zeeshan Ali's avatar
      locator: Some more debug prints · 129ad7f5
      Zeeshan Ali authored
      129ad7f5
    • Zeeshan Ali's avatar
      locator: Always initialize wifi source · c6f9105a
      Zeeshan Ali authored
      Now that we map country-level accuracy to city-level, lets treat wifi
      source like all other sources and always initialize it (see commit
      c17b2674) but only start it when it's
      available accuracy level changes to desired level.
      c6f9105a
    • Zeeshan Ali's avatar
      locator: Map country-level accuracy to city-level · 7f219ae0
      Zeeshan Ali authored
      There is no source that provides country-level accuracy. Since Wifi (as
      geoip) source is the best we can do, accuracy really is country-level many
      times from this source and its doubtful app (or user) will mind being
      given slighly more accurate location, lets just map this to city-level
      accuracy.
      7f219ae0
  16. 27 Jun, 2014 1 commit
  17. 15 Apr, 2014 2 commits
  18. 10 Apr, 2014 1 commit
  19. 09 Apr, 2014 2 commits
    • Zeeshan Ali's avatar
      wifi: Make geoip work for non-Linux · a25084f6
      Zeeshan Ali authored
      NetworkManager is Linux specific and to be able to build geoclue, other
      platforms (BSD) build with WiFi source disabled. Now that we don't have
      a separate geoip source, geoclue will be completely useless on those
      platforms.
      
      This patch replaces '--disable-wifi-source' configure option with
      '--disable-network-manager'. i-e now you disable usage of NetworkManger
      explicitly rather than wifi source, which is now always built and
      enabled.
      a25084f6
    • Zeeshan Ali's avatar
      locator: Use Wifi source as geoip source · 51b4ba94
      Zeeshan Ali authored
      51b4ba94
  20. 08 Apr, 2014 2 commits
  21. 07 Apr, 2014 1 commit
    • Zeeshan Ali's avatar
      locator: Don't connect to location notify, twice · 5b8866ac
      Zeeshan Ali authored
      Commit 92369a introduced a regression where we were connecting to
      location changes of underlying sources both on constructing and
      starting them. This patch solves the issue by removing the former.
      5b8866ac
  22. 06 Apr, 2014 3 commits
    • Zeeshan Ali's avatar
      locator: Initialize all sources · c17b2674
      Zeeshan Ali authored
      Initialize all sources but only start sources that provide better
      accuracy than NONE while not more than max accuracy level of locator.
      
      This is needed because the available accuracy level of sources is now
      dynamic.
      c17b2674
    • Zeeshan Ali's avatar
      locator: Provide value for available accuracy level · d6544253
      Zeeshan Ali authored
      Provide proper/correct value for available accuracy level and keep it
      up2date.
      d6544253
    • Zeeshan Ali's avatar
      Revert "location-source: Make start/stop explicit" · 92369a91
      Zeeshan Ali authored
      This basically reverts commit 88d42b44
      but had to be heavily rebased/changed.
      
      Since all actual location sources are now singletons, one fundamental new
      change is that each source now keeps a count of start requests and don't
      actually start or stop until this count reaches 1 or 0, respectively.
      
      Conflicts:
      	src/gclue-locator.c
      	src/gclue-service-client.c
      	src/gclue-web-source.c
      	src/gclue-wifi.c
      92369a91
  23. 02 Feb, 2014 1 commit
    • Allison Lortie's avatar
      Add support for disabling some sources · c94e9cc8
      Allison Lortie authored
      Introduce configure options --disable-wifi-source, --disable-3g-source
      and --disable-modem-gps-source to allow disabling of backends that
      depend on NetworkManager and ModemManager (since these components are
      not widely ported).
      
      There is no "auto detect" -- the options must be explicitly specified in
      order to disable the feature.  This prevents a quiet reduction in
      functionality just because the right headers didn't happen to be
      installed at configure time, which should help prevent packaging
      mistakes.
      
      https://bugs.freedesktop.org/show_bug.cgi?id=73961
      c94e9cc8
  24. 29 Jan, 2014 2 commits
    • Zeeshan Ali's avatar
      wifi,config: Easy way to submit WiFi data to Mozilla · 7f1d3103
      Zeeshan Ali authored
      Provide an option in config file to enable submission of wifi data to
      Mozilla Location Service. If this option is enabled, the data is submitted
      each time geoclue get a GPS lock. That means, its not completely
      autonomous and data is only submitted if an application, e.g gnome-maps
      requests current location with exact accuracy.
      7f1d3103
    • Zeeshan Ali's avatar
      Move public API to a subdir · 44348a53
      Zeeshan Ali authored
      This is so that we can just point our docs to that directory and it
      doesn't complain about all the internal API that we don't want it to
      scan anyway. Currently without this patch, the build actually breaks on
      doc system parsing the internalized geocode-glib sources.
      44348a53
  25. 27 Jan, 2014 2 commits
  26. 26 Jan, 2014 1 commit