Skip to content

Commit

Permalink
add telem current location engine being used track support (#605)
Browse files Browse the repository at this point in the history
  • Loading branch information
Guardiola31337 authored Oct 19, 2017
1 parent b094745 commit 2dfe04b
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -795,4 +795,12 @@ private Object addSdkVersion() {

return sdkVersion;
}

// For internal use only
// This is an experimental API. Experimental APIs are quickly evolving and
// might change or be removed in minor versions.
@Experimental
public void addLocationEngineName(@NonNull String locationEngineName, Hashtable<String, Object> eventWithAttributes) {
eventWithAttributes.put(MapboxNavigationEvent.KEY_LOCATION_ENGINE, locationEngineName);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,7 @@ private void sendEventsWrapped(Vector<Hashtable<String, Object>> events, Callbac
evt.get(MapboxNavigationEvent.KEY_ARRIVAL_TIMESTAMP));
jsonObject.putOpt(MapboxNavigationEvent.KEY_STEP, evt.get(MapboxNavigationEvent.KEY_STEP));
jsonObject.putOpt(MapboxNavigationEvent.KEY_STEP_COUNT, evt.get(MapboxNavigationEvent.KEY_STEP_COUNT));
jsonObject.putOpt(MapboxNavigationEvent.KEY_LOCATION_ENGINE, evt.get(MapboxNavigationEvent.KEY_LOCATION_ENGINE));

// Step metadata
jsonObject.putOpt(MapboxNavigationEvent.KEY_UPCOMING_INSTRUCTION,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ public class MapboxNavigationEvent {
public static final String KEY_ARRIVAL_TIMESTAMP = "arrivalTimestamp";
public static final String KEY_STEP = "step";
public static final String KEY_STEP_COUNT = "stepCount";
public static final String KEY_LOCATION_ENGINE = "locationEngine";

// Step metadata
public static final String KEY_UPCOMING_INSTRUCTION = "upcomingInstruction";
Expand Down

0 comments on commit 2dfe04b

Please sign in to comment.