Propagate GPS and vehicle speed updates from OpenXC to the normal Android
If we have at least latitude, longitude and vehicle speed from the vehicle,
we send out a new location for the LocationManager.GPS_PROVIDER and
VEHICLE_LOCATION_PROVIDER providers in the Android location service.
Developers can either use the standard Android location framework
with vehicle locations enabled in OpenXC, or the specific OpenXC
Latitude/Longitude measurements directly.
(Context context, VehicleManager vehicleManager)
Enable or disable overwriting Android's native GPS values with those from
If enabled, the GPS_PROVIDER from Android will respond with data taken
from the vehicle interface. The native GPS values will be used until GPS
data is actually received from the vehicle, so if the specific car you're
plugged into doesn't have GPS then the values will not be overwritten,
regardless of this setting.