Static Public Member Functions | |
static GpsPosition | getActualGpsPosition (boolean satInfo, int maxTime) throws GpsException |
Returns informations about actual GPS position. More... | |
static String | getRouteStatus (int maxTime) throws GeneralException |
Returns information about the navigation progress on a route in the json format. More... | |
static void | startNavigation (WayPoint location, int flags, boolean searchAddress, int maxTime) throws NavigationException |
Starts navigation to a given location. More... | |
static void | stopNavigation (int maxTime) throws GeneralException |
Stops navigation. More... | |
static void | navigateToAddress (String strAddress, boolean postal, int flags, int maxTime) throws NavigationException |
Calculates the route from the current GPS position to a given destination and starts navigation. More... | |
static String | loadComputedRoute (String routePath, int startWpId, int maxTime) throws LoadRouteException |
Loads a precomputed route (guided route) from a file and starts navigation following that route. More... | |
static String | loadComputedRoute (String routePath, int maxTime) throws LoadRouteException |
Loads a precomputed route (guided route) from a file and starts navigation following that route. More... | |
static String | loadComputedRoute (String routePath, String jsonParams, int maxTime) throws LoadRouteException |
Loads a precomputed route (guided route) from a file and starts navigation following that route. More... | |
static String | getRoute (int format, int detail, int maxTime) throws GeneralException |
Returns a route geometry of the currently calculated route in the json format. More... | |
Static Public Attributes | |
static final int | ASK_DELETE_ROUTE = 0x00000002 |
commands Navigation to prompt user whether to delete currently computed route. More... | |
static final int | MESSAGE_AVOID_MOTORWAYS_ENABLE = 0x00000004 |
commands Navigation to notify user that not all motorways can be avoided. More... | |
static final int | MESSAGE_AVOID_TOLL_ROADS_ENABLE = 0x00000008 |
commands Navigation to notify user that not all toll roads can be avoided. More... | |
static final int | MESSAGE_AVOID_FERRIES_ENABLE = 0x00000010 |
commands Navigation to notify user that not all ferries can be avoided. More... | |
static final int | MESSAGE_ROUTE_ENABLE = 0x00000020 |
commands Navigation to notify user that route can not be computed. More... | |
static final int | MESSAGE_WAYPOINTS_DISTANT = 0x00000040 |
commands Navigation to notify user that route can not be computed because of too big distance between start and destination points. More... | |
|
static |
Returns informations about actual GPS position.
satInfo | Flag determining whether function should return satellites information. |
maxTime | Maximum time (in milliseconds) the function can take. If maxTime=0 function execution is not time limited. |
Notes:
The function getActualGpsPosition needs Navigation to have valid GPS position. If valid GPS position is not present, function returns null.
GpsException | the gps exception |
References Api.getInstance(), Api.getService(), and GpsPosition.readBundle().
|
static |
Returns a route geometry of the currently calculated route in the json format.
format | requested json format of the geometry, 0 - Sygic format, 1 - PTV format route is loaded. |
detail | level of detail, 1 - waypoints and road geometry points, other values reserved |
maxTime | Maximum time (in milliseconds) the function can take. If maxTime=0 function execution is not time limited. |
GeneralException | the general exception |
References Api.getInstance(), and Api.getService().
|
static |
Returns information about the navigation progress on a route in the json format.
maxTime | Maximum time (in milliseconds) the function can take. If maxTime=0 function execution is not time limited. |
GeneralException | the general exception |
References Api.getInstance(), and Api.getService().
|
static |
Loads a precomputed route (guided route) from a file and starts navigation following that route.
routePath | Path and filename of the RSAV or JSON file, from which the route is loaded. |
startWpId | the start waypoint id |
maxTime | Maximum time (in milliseconds) the function can take. If maxTime=0 function execution is not time limited. |
LoadRouteException | the exception related to problems of route loading |
References Api.getInstance(), and Api.getService().
Referenced by ApiNavigation.loadComputedRoute().
|
static |
Loads a precomputed route (guided route) from a file and starts navigation following that route.
routePath | Path and filename of the RSAV or JSON file, from which the route is loaded. |
maxTime | Maximum time (in milliseconds) the function can take. If maxTime=0 function execution is not time limited. |
LoadRouteException | the exception related to problems of route loading |
References ApiNavigation.loadComputedRoute().
|
static |
Loads a precomputed route (guided route) from a file and starts navigation following that route.
routePath | Path and filename of the JSON file, from which the route is loaded. |
jsonParams | parametrization of the loading expressed in json file. Supported parameters: startFromIndex(int) and showOnly(boolean) |
maxTime | Maximum time (in milliseconds) the function can take. If maxTime=0 function execution is not time limited. |
LoadRouteException | the exception related to problems of route loading |
References Api.getInstance(), and Api.getService().
|
static |
Calculates the route from the current GPS position to a given destination and starts navigation.
strAddress | Specifies address of the route destination. Address must be in the format "iso,city/zip,street,house number" |
postal | Flag determining whether the second address parameter represents city or zip code.
|
flags | Determines route computing preferences. |
maxTime | Maximum time (in milliseconds) the function can take. If maxTime=0 function execution is not time limited. |
NavigationException | the navigation exception |
References Api.getInstance(), and Api.getService().
|
static |
Starts navigation to a given location.
location | model.WayPoint instance, which contains the information about the destination, specifically the GPS coordinates |
flags | Determines route computing behavior |
searchAddress | Flag determining whether the Location parameter will be updated with a reverse geocoded address
|
maxTime | Maximum time (in milliseconds) the function can take. If maxTime=0 function execution is not time limited |
NavigationException | the navigation exception |
References Api.getInstance(), Api.getService(), and WayPoint.writeBundle().
|
static |
Stops navigation.
maxTime | Maximum time (in milliseconds) the function can take. If maxTime=0 function execution is not time limited. |
GeneralException | the general exception |
References Api.getInstance(), and Api.getService().
|
static |
commands Navigation to prompt user whether to delete currently computed route.
Navigation asks user to delete computed route before computing new route if some route is computed.
|
static |
commands Navigation to notify user that not all ferries can be avoided.
Navigation shows message which notice user that not all ferries can be avoided if user wished to avoid them.
|
static |
commands Navigation to notify user that not all motorways can be avoided.
Navigation shows message which notice user that not all motorways can be avoided if user wished to avoid them.
|
static |
commands Navigation to notify user that not all toll roads can be avoided.
Navigation shows message which notice user that not all toll roads can be avoided if user wished to avoid them.
|
static |
commands Navigation to notify user that route can not be computed.
For example this could happen if start or destination point of route are out of loaded maps.
|
static |
commands Navigation to notify user that route can not be computed because of too big distance between start and destination points.
For example if route is computed for walking.