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 Mar 16, 2026. It is now read-only.
Repository navigation
This repository was archived by the owner on Mar 16, 2026. It is now read-only.
LocationEngine locationEngine = LocationEngineProvider.getBestLocationEngine(this);
locationEngine.requestLocationUpdates(
new LocationEngineRequest.Builder(750)
.setFastestInterval(750)
.setPriority(LocationEngineRequest.PRIORITY_HIGH_ACCURACY)
.build(),
new LocationEngineCallback<LocationEngineResult>() {
private long last = 0;
@Override
public void onSuccess(LocationEngineResult result) {
long current = System.currentTimeMillis();
long diff = current - last;
last = current;
Logger.d("TEST", String.valueOf(diff));
}
@Override
public void onFailure(@NonNull Exception exception) {
}
},
Looper.getMainLooper());
This particualr example was using MapboxFusedLocationEngineImpl and libtelemetry v4.1.1.
By doing some tests, my preliminary conclusion is that
If we use GoogleLocationEngineImpl, the fastest interval will works.
If we use MapboxFusedLocationEngineImpl, setFastestInterval will not works since it will pass the Interval parameter to location API and in framework it will set fastest interval with the same value of interval.
3.In this case we set interval to 750ms and still could get location update in last than 750ms, since we pass the value correctly to System API, so I guess it is some thing wrong with framework, not our location sdk.
@Chaoba since Android framework doesn't support fastestInterval, the gist of the ask is to implement downsampling of the location events internally in MapboxFusedLocationEngineImpl when both interval and fastestInterval are provided by the user. Did i miss anything @LukasPaczos ?
@Cloud9CloneFusedLocationProvider is integrated in Google Play Services and can be used with the play service dependency so long as play services are available on the device.
Activity
Chaoba commentedon Feb 28, 2019
By doing some tests, my preliminary conclusion is that
GoogleLocationEngineImpl, the fastest interval will works.MapboxFusedLocationEngineImpl,setFastestIntervalwill not works since it will pass theIntervalparameter to location API and in framework it will set fastest interval with the same value of interval.3.In this case we set interval to 750ms and still could get location update in last than 750ms, since we pass the value correctly to System API, so I guess it is some thing wrong with framework, not our location sdk.
andrlee commentedon Mar 1, 2019
@Chaoba since Android framework doesn't support
fastestInterval, the gist of the ask is to implement downsampling of the location events internally inMapboxFusedLocationEngineImplwhen bothintervalandfastestIntervalare provided by the user. Did i miss anything @LukasPaczos ?LukasPaczos commentedon Mar 1, 2019
No, I don't think so - if we're exposing this setter, it should be respected regardless of the implementation.
alfwatt commentedon Jun 17, 2019
Open Branch with PR - needs review and merge
alfwatt commentedon Oct 22, 2019
Valid: https://github.com/mapbox/mobile-telemetry/issues/458
Cloud9Clone commentedon May 2, 2020
Do we require a billing account in order to use the Google's FusedLocationProvider?
nkukday commentedon May 4, 2020
@Cloud9Clone
FusedLocationProvideris integrated inGoogle Play Servicesand can be used with the play service dependency so long as play services are available on the device.