![]() |
MapTrip Interface Android Reference Manual 9.8.7
|
Public Member Functions | |
void | statusInfo (double latitude, double longitude, double metersToDestination, double remainingTimeInSeconds) |
void | coiInfo (double latitude, double longitude, String currentStreetName, String nextStreetName, double meterToPoint) |
void | crossingInfo (double latitude, double longitude, String currentStreetName, String nextStreetName, String nextManeuver, double meterToPoint) |
void | destinationReached (int index) |
void | insertDestinationCoordinateResult (int requestId, ApiError returnCode) |
void | appendDestinationCoordinateResult (int requestId, int indexWhereAppended, ApiError returnCode) |
void | insertDestinationAddressResult (int requestId, ApiError returnCode) |
void | appendDestinationAddressResult (int requestId, int indexWhereAppended, ApiError returnCode) |
void | insertGeocodedDestinationResult (int requestId, ApiError returnCode) |
void | appendGeocodedDestinationResult (int requestId, int indexWhereAppended, ApiError returnCode) |
void | markDestinationCoordinateAsViaPointResult (int requestId, ApiError returnCode) |
void | getDestinationCoordinateResult (int requestId, ApiError returnCode, double latitude, double longitude) |
void | getDestinationCoordinateCountResult (int requestId, ApiError returnCode, int count) |
void | getCurrentDestinationResult (int requestId, ApiError returnCode, int index) |
void | removeAllDestinationCoordinatesResult (int requestId, ApiError returnCode) |
void | calculateRoutesResult (int requestId, ApiError returnCode) |
void | startNavigationResult (int requestId, ApiError returnCode) |
void | startAlternativeNavigationResult (int requestId, ApiError returnCode) |
void | startTourResult (int requestId, ApiError returnCode) |
void | skipNextDestinationResult (int requestId, ApiError returnCode) |
void | startSimulationResult (int requestId, ApiError returnCode) |
void | stopNavigationResult (int requestId, ApiError returnCode) |
void | startRouteFromFileResult (int requestId, ApiError returnCode) |
void | startReferenceRouteResult (int requestId, ApiError returnCode) |
void | getReferenceRouteFileResult (int requestId, String routeFile, ApiError returnCode) |
void | syncWithActiveNavigationResult (int requestId, ApiError returnCode) |
void | navigateWithGuiGeocodingResult (int requestId, ApiError returnCode) |
void | routingStarted () |
void | routeCalculated () |
void | setRoutingModeHybridResult (int requestId, ApiError returnCode) |
void | newRouteAvailable () |
void | setEmergencyRoutingEnabledResult (int requestId, ApiError returnCode) |
void | getEmergencyRoutingEnabledResult (int requestId, ApiError returnCode, boolean isEnabled, boolean isActive, int RadiusMtrs) |
void | setEmergencyRouteRadiusResult (int requestId, ApiError returnCode) |
void | getEmergencyRouteRadiusResult (int requestId, ApiError returnCode, int radius) |
void | setAsReferenceRouteResult (int requestId, ApiError returnCode) |
void de.infoware.android.mti.NavigationListener.appendDestinationAddressResult | ( | int | requestId, |
int | indexWhereAppended, | ||
ApiError | returnCode | ||
) |
Called after adding an address Navigation.appendDestinationAddress().
requestId | - unique identifier returned by the initiating request |
indexWhereAppended | - 0 based index in the destination coordinate list where the coordinate has been appended |
returnCode | -
|
void de.infoware.android.mti.NavigationListener.appendDestinationCoordinateResult | ( | int | requestId, |
int | indexWhereAppended, | ||
ApiError | returnCode | ||
) |
Called after appending an address Navigation.appendDestinationCoordinate().
requestId | - unique identifier returned by the initiating request |
indexWhereAppended | - 0 based index in the destination coordinate list where the coordinate has been appended |
returnCode | -
|
void de.infoware.android.mti.NavigationListener.appendGeocodedDestinationResult | ( | int | requestId, |
int | indexWhereAppended, | ||
ApiError | returnCode | ||
) |
Called after adding an address Navigation.appendGeocodedDestination().
indexWhereAppended | - 0 based index in the destination coordinate list where the coordinate has been appended |
requestId | - unique identifier returned by the initiating request |
returnCode | -
|
void de.infoware.android.mti.NavigationListener.calculateRoutesResult | ( | int | requestId, |
ApiError | returnCode | ||
) |
Called after processing an Navigation.calculateRoutes() call.
requestId | - unique identifier returned by the initiating request |
returnCode | -
|
void de.infoware.android.mti.NavigationListener.coiInfo | ( | double | latitude, |
double | longitude, | ||
String | currentStreetName, | ||
String | nextStreetName, | ||
double | meterToPoint | ||
) |
This callback is used to send status information about crossings during a navigation.
latitude | - WGS84 |
longitude | - WGS84 |
currentStreetName | - name of the current street |
meterToPoint | - distance to crossing in meters; -1 if no navigation is started |
nextStreetName | - name of the next street; empty if no navigation is started |
void de.infoware.android.mti.NavigationListener.crossingInfo | ( | double | latitude, |
double | longitude, | ||
String | currentStreetName, | ||
String | nextStreetName, | ||
String | nextManeuver, | ||
double | meterToPoint | ||
) |
This callback is used to send more detailed status information about the next relevant crossing during a navigation.
The nextManeuver can have the following values:
latitude | - WGS84 |
longitude | - WGS84 |
currentStreetName | - name of the current street |
meterToPoint | - distance to crossing in meters; -1 if no navigation is started |
nextStreetName | - name of the next street; empty if no navigation is started |
nextManeuver | - Text description of the action to take at the next crossing (e.g. Turn left = "TurnL") |
void de.infoware.android.mti.NavigationListener.destinationReached | ( | int | index | ) |
void de.infoware.android.mti.NavigationListener.getCurrentDestinationResult | ( | int | requestId, |
ApiError | returnCode, | ||
int | index | ||
) |
Called after processing an Navigation.getCurrentDestination() call. The returned index can be used the request the coordinate and address of the current destination via Navigation.getDestinationCoordinate().
requestId | - unique identifier returned by the initiating request |
index | - index of the current destination in the destination list |
returnCode | -
|
void de.infoware.android.mti.NavigationListener.getDestinationCoordinateCountResult | ( | int | requestId, |
ApiError | returnCode, | ||
int | count | ||
) |
Called after adding an address Navigation.getDestinationCoordinateCount().
requestId | - unique identifier returned by the initiating request |
count | - number of destination coordinates already added to the destination list |
returnCode | -
|
void de.infoware.android.mti.NavigationListener.getDestinationCoordinateResult | ( | int | requestId, |
ApiError | returnCode, | ||
double | latitude, | ||
double | longitude | ||
) |
Called after adding an address Navigation.getDestinationCoordinate().
requestId | - unique identifier returned by the initiating request |
latitude | - WGS84 coordinate of the navigation goal, 0.0 if the index was invalid |
longitude | - WGS84 coordinate of the navigation goal, 0.0 if the index was invalid |
returnCode | -
|
void de.infoware.android.mti.NavigationListener.getEmergencyRouteRadiusResult | ( | int | requestId, |
ApiError | returnCode, | ||
int | radius | ||
) |
Called after a call to mti_nav_getEmergencyRouteRadius is completed
requestId | - unique identifier returned by the initiating request |
returnCode | -
|
radius | - radius in meters around the destinations where emergency routing will be active |
void de.infoware.android.mti.NavigationListener.getEmergencyRoutingEnabledResult | ( | int | requestId, |
ApiError | returnCode, | ||
boolean | isEnabled, | ||
boolean | isActive, | ||
int | RadiusMtrs | ||
) |
Called after a call to mti_nav_getEmergencyRoutingEnabled is completed
requestId | - unique identifier returned by the initiating request |
returnCode | -
|
isEnabled | - true if emergency routing is enabled - this can be set by calling mti_nav_setEnableEmergencyRouting |
isActive | - true if the current navigation is now in emergency mode as the position is within the specified radius to the destination |
RadiusMtrs | - radius in meters around the destinations where emergency routing will be active |
void de.infoware.android.mti.NavigationListener.getReferenceRouteFileResult | ( | int | requestId, |
String | routeFile, | ||
ApiError | returnCode | ||
) |
Called after processing an Navigation.startReferenceRoute() call.
requestId | - unique identifier returned by the initiating request |
returnCode | -
|
void de.infoware.android.mti.NavigationListener.insertDestinationAddressResult | ( | int | requestId, |
ApiError | returnCode | ||
) |
Called after adding an address Navigation.insertDestinationAddress().
requestId | - unique identifier returned by the initiating request |
returnCode | -
|
void de.infoware.android.mti.NavigationListener.insertDestinationCoordinateResult | ( | int | requestId, |
ApiError | returnCode | ||
) |
Called after adding an address Navigation.insertDestinationCoordinate().
requestId | - unique identifier returned by the initiating request |
returnCode | -
|
void de.infoware.android.mti.NavigationListener.insertGeocodedDestinationResult | ( | int | requestId, |
ApiError | returnCode | ||
) |
Called after adding an address Navigation.insertGeocodedDestination().
requestId | - unique identifier returned by the initiating request |
returnCode | -
|
void de.infoware.android.mti.NavigationListener.markDestinationCoordinateAsViaPointResult | ( | int | requestId, |
ApiError | returnCode | ||
) |
Called after setting a navigation goal as via point with Navigation.markDestinationCoordinateAsViaPoint() .
requestId | - unique identifier returned by the initiating request |
returnCode | -
|
void de.infoware.android.mti.NavigationListener.navigateWithGuiGeocodingResult | ( | int | requestId, |
ApiError | returnCode | ||
) |
Called after processing an Navigation.navigateWithGuiGeocoding() call.
requestId | - unique identifier returned by the initiating request |
returnCode | -
|
void de.infoware.android.mti.NavigationListener.newRouteAvailable | ( | ) |
Called when a new offboard route is available from the server
requestId | - unique identifier returned by the initiating request |
returnCode | -
|
void de.infoware.android.mti.NavigationListener.removeAllDestinationCoordinatesResult | ( | int | requestId, |
ApiError | returnCode | ||
) |
Called after processing an Navigation.removeAllDestinationCoordinates() call.
requestId | - unique identifier returned by the initiating request |
returnCode | -
|
void de.infoware.android.mti.NavigationListener.routeCalculated | ( | ) |
void de.infoware.android.mti.NavigationListener.routingStarted | ( | ) |
void de.infoware.android.mti.NavigationListener.setAsReferenceRouteResult | ( | int | requestId, |
ApiError | returnCode | ||
) |
Called after a call to mti_nav_setAsReferenceRoute is completed
requestId | - unique identifier returned by the initiating request |
returnCode | -
|
void de.infoware.android.mti.NavigationListener.setEmergencyRouteRadiusResult | ( | int | requestId, |
ApiError | returnCode | ||
) |
Called after a call to mti_nav_setEmergencyRouteRadius is completed
requestId | - unique identifier returned by the initiating request |
returnCode | -
|
void de.infoware.android.mti.NavigationListener.setEmergencyRoutingEnabledResult | ( | int | requestId, |
ApiError | returnCode | ||
) |
Called after a call to mti_nav_setEmergencyRoutingEnabled is completed
requestId | - unique identifier returned by the initiating request |
returnCode | -
|
void de.infoware.android.mti.NavigationListener.setRoutingModeHybridResult | ( | int | requestId, |
ApiError | returnCode | ||
) |
void de.infoware.android.mti.NavigationListener.skipNextDestinationResult | ( | int | requestId, |
ApiError | returnCode | ||
) |
Called after processing an Navigation.skipNextDestination() call.
requestId | - unique identifier returned by the initiating request |
returnCode | -
|
void de.infoware.android.mti.NavigationListener.startAlternativeNavigationResult | ( | int | requestId, |
ApiError | returnCode | ||
) |
Called after processing an Navigation.startAlternativeNavigation() call.
requestId | - unique identifier returned by the initiating request |
returnCode | -
|
void de.infoware.android.mti.NavigationListener.startNavigationResult | ( | int | requestId, |
ApiError | returnCode | ||
) |
Called after processing an Navigation.startNavigation() call.
requestId | - unique identifier returned by the initiating request |
returnCode | -
|
void de.infoware.android.mti.NavigationListener.startReferenceRouteResult | ( | int | requestId, |
ApiError | returnCode | ||
) |
Called after processing an Navigation.startReferenceRoute() call.
requestId | - unique identifier returned by the initiating request |
returnCode | -
|
void de.infoware.android.mti.NavigationListener.startRouteFromFileResult | ( | int | requestId, |
ApiError | returnCode | ||
) |
Called after processing an Navigation.startRouteFromFile() call.
requestId | - unique identifier returned by the initiating request |
returnCode | -
|
void de.infoware.android.mti.NavigationListener.startSimulationResult | ( | int | requestId, |
ApiError | returnCode | ||
) |
Called after processing an Navigation.startSimulation() call.
requestId | - unique identifier returned by the initiating request |
returnCode | -
|
void de.infoware.android.mti.NavigationListener.startTourResult | ( | int | requestId, |
ApiError | returnCode | ||
) |
Called after processing an Navigation.startTour() call.
requestId | - unique identifier returned by the initiating request |
returnCode | -
|
void de.infoware.android.mti.NavigationListener.statusInfo | ( | double | latitude, |
double | longitude, | ||
double | metersToDestination, | ||
double | remainingTimeInSeconds | ||
) |
void de.infoware.android.mti.NavigationListener.stopNavigationResult | ( | int | requestId, |
ApiError | returnCode | ||
) |
Called after processing an Navigation.stopNavigation() call.
requestId | - unique identifier returned by the initiating request, MTI_REQUEST_NO_REQUEST_ID if not initiated by an MTI request (via GUI) |
returnCode | -
|
void de.infoware.android.mti.NavigationListener.syncWithActiveNavigationResult | ( | int | requestId, |
ApiError | returnCode | ||
) |
Called after processing an Navigation.syncWithActiveNavigation() call.
requestId | - unique identifier returned by the initiating request |
returnCode | -
|