public class NavigationSDK
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
NavigationSDK.UnitCategory |
Modifier and Type | Field and Description |
---|---|
static int |
SDK_GEOCONVERSION_FACTOR
The conversion factor with which coordinates which are stored in the
format
CoordinateSystem.GEODEZ are stored when stored as integral
values. |
Modifier and Type | Method and Description |
---|---|
static int |
addBuddyAlert(int buddyId,
int radius,
BuddyAlertType alertType)
Define a buddy alert.
|
static int |
addImage(java.lang.String bitmapName,
Position center)
Create an image that shall be rendered on the current map
|
static void |
addMapPath(java.io.File mapPath)
Add an additional path to search for POI data.
|
static void |
addMapPath(java.lang.String mapPath)
Add an additional path to search for map data.
|
static void |
addPOIPath(java.io.File mapPath) |
static void |
addPOIPath(java.lang.String addrPath)
Add an additional path to search for POI data.
|
static CalculateTourResult |
calculateTour(Tour tour,
Observer observer)
Calculate a tour
This method calculates the first route of a tour, generates its route trace, appends all
route traces of the next stations (added with
NavigationSDK#addStationToTour(WayPoint) ,
NavigationSDK#addStationsToTour(NativeArray) or NavigationSDK#addSVPsToTour(NativeArray) ),
and activates the guidance of the first route. |
static Result<MatchedWayPointArray> |
calculateViaRoute(NativeArray<WayPoint> wayPoints,
NativeArray<Position> viaPoints,
int[] viaRadius) |
static Result<MatchedWayPointArray> |
calculateViaRoute(NativeArray<WayPoint> wayPoints,
NativeArray<Position> viaPoints,
int[] viaRadius,
Observer observer) |
static void |
changeMap(int mapIdx)
Switches to another map.
|
static BuddyAlertState |
checkBuddyAlerts(Position center)
Check if alerts exist for the given position
|
static boolean |
checkIfTunnel(NavigationInformation navigationInformation,
GPSData gpsData)
Check whether a given position is in a tunnel.
|
static short |
convertGeoHeading(int heading)
Convert a standard heading with 0 degrees at north, clockwise counting to the internal
heading with 0 degrees at east, counter clockwise counting.
|
static int |
createBuddy(java.lang.String bitmapName,
java.lang.String buddyName)
Create an item called buddy.
|
static void |
createGPSSimulation(java.io.File simFilePath)
Create a GPS simulation file for the most recent calculated route.
|
static void |
createGPSSimulation(java.lang.String simFileName)
Create a GPS simulation file for the most recent calculated route.
|
static void |
createRouteFromSVPPoints(int count,
SVPWayPointArray svpWaypoints,
long innerColor,
long outerColor)
\brief Generates an internal route object based on given intermediate
points which can be on- and offroad
Creates an internal route object which is assembled by creating the appropriate
routes (onroad/offroad) from the svp waypoints given by pSVPWaypoints.
|
static void |
deleteBuddy(int buddyId)
Delete a buddy.
|
static int |
deleteBuddyAlert(int buddyId,
int buddyAlertId)
Delete buddy alert.
|
static void |
deleteImage(int imageId)
Delete image.
|
static void |
deleteImages()
Delete all images
|
static void |
destroyGeoCodeResult(long index)
Releases memory for geocoding results
|
static void |
destroyPOISearchResult(long searchRequestIndex)
Releases memory for POISearch results
|
static void |
destroySearchResult(long searchResultHandle)
Free memory for search results
|
static void |
finalizeSDK()
Release the NavigationSDK instance.
|
static void |
freeRouteTrace(Trace trace)
Destroys the route trace.
|
static GeoCodeResult |
geoCode(Address searchAddress)
Do a simple geocoding.
|
static int |
getAlternativeRouteActive()
Get the current active route alternative.
|
static int |
getAlternativeRouteCount()
Get the number of alternative routes including the default or original route.
|
static SDKVersion |
getAPIVersion()
Retrieve version of current supported major API set.
|
static MapInformationResults |
getAvailableMaps() |
static int |
getBuddyCount()
Get the number of buddies.
|
static java.lang.String |
getErrorDescription(SDKErrorCode errorCode)
Return description to a given error code Currently it just returns the
name of the error code.
|
static GeoCodeResult |
getGeoCodeResult(long index) |
static Result<NavigationInformation> |
getGuidanceInformation(GPSData gpsData)
Retrieve guidance information for a position on the current routing.
|
static java.lang.String |
getLanguage()
Query the currently used language
See
setLanguage(String) about usage of language settings within the
Navigation SDK. |
static java.lang.String |
getLocalizedDistanceString(int value,
boolean quantify,
boolean allowNow,
java.lang.String nowString,
char decimalSeparator)
Query a localized string for a distance value
|
static java.lang.String |
getLocalizedDistanceString(long distanceInMeters,
boolean quantify)
Get a localized string for the distanceInMeters parameter
This is a shortcut for calling
getLocalizedDistanceString(long, boolean, boolean, String)
with the parameter allowNow set to false and no nowString. |
static java.lang.String |
getLocalizedDistanceString(long distanceInMeters,
boolean quantify,
boolean allowNow,
java.lang.String nowString)
Get a localized string for the distanceInMeters parameter
This is a shortcut for calling
getLocalizedDistanceString(int, boolean, boolean, String, char)
with the separator set automatically from the system. |
static java.lang.String |
getLocalizedUnitName(int category,
boolean bigUnit)
Query the localized name of the unit defined by the current set metric
|
static double |
getLocalizedUnitValue(int category,
boolean bigUnit,
double value)
Query the transformed and localized value for a given unit and the currently set metric
Use this to convert from kilometers to miles for example.
|
static Result<LorryOptions> |
getLorryOptions()
Retrieve the lorry settings
|
static ManeuverArrow |
getManeuverArrow(ManeuverDescription description,
CrossingView crossing)
Retrieve a simplified arrow representation for the given maneuver situation
|
static int |
getManeuverCount(int listMode)
Returns the number of maneuver stop-off points of a calculated route.
|
static Result<ManeuverGeneratorSettings> |
getManeuverGeneratorSettings()
Get the maneuver generator settings.
|
static Result<ManeuverDescription> |
getManeuverPoint(int listMode,
int stopOffId)
Get detailed information of a stop-off point.
|
static java.lang.String |
getManeuverText(NavigationInformation info,
StringRetriever retriever)
Get the maneuver text for the current navigation situation.
|
static int |
getMapByPosition(Position pos)
Returns the map respectively to that position.
|
static int |
getMapCount()
Returns the number of maps which are currently under control of
NavigationSDK.
|
static Result<MapInformation> |
getMapInformation(int mapIdx)
Returns detailed information about a map.
|
static MapViewStyles |
getMapViewStyles(int mapView)
Retrieve some settings about rendering details.
|
static int |
getMetric()
Query the metric used for Navigation/guidance information
The returned values can be:
0 = Use metric system (m, km)
1 = Use miles (yd, mi)
2 = Use miles (yd, mi) suitable for USA
The default metric is 0 (m, km)
|
static Result<NavigationSettings> |
getNavigationSettings()
Retrieve the navigation settings.
|
static int |
getPOIItemCount(int layerId)
Determine the number of POIs stored in a specific layer.
|
static int |
getPOILayerByName(java.lang.String layer)
Receives the id of a specific POI layer.
|
static int |
getPOILayerCount()
Determine the total number of available POI layers.
|
static java.lang.String |
getPOILayerName(int layerId)
Receives the name of a specific POI layer.
|
static Result<POISearchResult> |
getPOIResult(long searchRequestIndex,
long searchResultIndex)
Get a single result row from the POIsearch result
Retrieve a particular search result row from a search given by
SearchRequestIndex.
|
static java.lang.String |
getProfileName(java.io.File profilePath,
java.lang.String cc) |
static Result<SearchResult> |
getResult(int searchResultHandle,
int searchResultIndex,
boolean generalizePLZ)
Retrieve a particular result row.
|
static int |
getResultCount(long searchRequestIndex)
Get the result count for a particular search result identified by
searchRequestIndex.
|
static RouteInformation |
getRouteInformation(int routeIndex,
int alternative)
Return general information about one route of several alternative routes.
|
static Result<Trace> |
getRouteTrace()
Retrieve the route trace.
|
static Result<Trace> |
getRouteTraceAhead(boolean onlyToNextStation)
Retrieve the route trace ahead from the current position to either the next station or
the end of the route.
|
static Result<RouteTraces> |
getRouteTraces()
Return the route traces of a tour or an A-B routing.
|
static Result<RouteOptions> |
getRoutingOptions()
Retrieve the routing options.
|
static int |
getTrafficDelayOnRoute(boolean completeRoute,
int alternativeRouteIndex)
Get information about the traffic delay on the route (for the whole route or from the current position to the end of the route).
|
static Result<TrafficResults> |
getTrafficSearchResults()
Get the traffic results from the last traffic search.
|
static void |
initialize(java.io.File mapPath,
java.lang.String mapName,
java.io.File addrPath,
java.io.File appPath)
Initialize the NavigationSDK.
|
static void |
initialize(java.lang.String mapPath,
java.lang.String mapName,
java.lang.String addrPath,
java.lang.String appPath)
Initialize the NavigationSDK.
|
static int |
initMapView(android.graphics.Bitmap bitmap)
Initializes a new Mapview.
|
static GeoCodeResult |
inverseGeoCode(Position position)
Do an inverse geocoding.
|
static void |
loadRoute(java.lang.String routeFileName,
TargetDescription targetDescription)
Load a saved route (.mre file).
|
static void |
loadVehicleProfile(java.io.File profilePath) |
static Result<RoadMatchInformation> |
matchRoad(WayPoint wayPoint)
Perform information about the current position on a road (does not
require navigation context!)
|
static ParseTownNameResult |
parseTownName(java.lang.String townResultName)
Parse a town name returned by a search.
|
static void |
positionBuddy(int buddyId,
Position center)
Position the buddy so it gets rendered next time.
|
static void |
positionImage(int imageId,
Position center)
Position image
|
static void |
refreshTrafficTracesAndIcons(boolean showIconsOnlyOnRoute)
Refresh the traffic traces and the traffic icons on the map.
|
static void |
removeMapPath(java.io.File mapPath)
Remove an additional path to search for map data.
|
static void |
removeMapPath(java.lang.String mapPath)
Remove an additional path to search for map data.
|
static void |
removePOIPath(java.io.File mapPath) |
static void |
removePOIPath(java.lang.String addrPath)
remove an additional path to search for POI data.
|
static void |
removeTrafficTraces()
Remove manually the traffic traces from the last traffic search.
|
static void |
saveRoute(java.lang.String routeFileName,
boolean overwrite)
Save the current existing route
Currently only implemented for a single route within a single map
|
static SearchResults |
searchCrossing(SearchRequest searchRequest,
int maxSearchResult,
SearchResult streetDescription)
Search for all intersections of the given street
Search for all streets which intersects the street from the given street result.
|
static SearchResults |
searchHouseNr(SearchRequest searchRequest,
int maxResultCount,
SearchResult townDescription,
SearchResult streetDescription)
Search for a house number
Searches for a house number.
|
static POISearchResults |
searchPOI(int layerId,
POISearchRequest searchRequest,
int maxSearchResult)
Searches for one or more entries in the POI database.
|
static SearchResults |
searchPostcode(SearchRequest searchRequest,
int maxResultCount,
boolean majorOnly,
boolean oneEntryPerTown)
Searches for a town depending on the postcode.
|
static SearchResults |
searchPostcode(SearchRequest searchRequest,
int maxResultCount,
boolean majorOnly,
boolean oneEntryPerTown,
int distinctHouseNumber)
Searches for a town depending on the postcode.
|
static SearchResults |
searchStreet(SearchRequest searchRequest,
int maxResultCount,
SearchResult townDescription)
Searches for a street.
|
static SearchResults |
searchTown(SearchRequest request,
int count)
Searches for a town.
|
static SearchResults |
searchTown(SearchRequest request,
int count,
boolean mergeTowns)
Searches for a town.
|
static void |
searchTrafficInformation(GeoPosition position,
Observer observer)
Start an asynchronous search for traffic information with a previously set web configuration.
|
static void |
searchTrafficInformation(Position position,
Observer observer)
This method provides the same functionality as
searchTrafficInformation(GeoPosition, Observer) except that the position
parameter is given in mercator coordinates instead of geodecimal coordinates. |
static void |
setAlternativeRouteActive(int alternative)
Set the given route as the active route (use
getAlternativeRouteCount() to get the number of alternative routes available. |
static void |
setAutoZoomScaleMargins(int minZoomSlow2d,
int minZoomFast2d,
int maxZoom2d,
int minZoomSlow3d,
int minZoomFast3d,
int maxZoom3d) |
static void |
setAutoZoomSpeedScales(boolean trackingMode,
int[] marginalSpeeds,
int[] scaleFactor2d,
int[] scaleFactor3d) |
static void |
setAutoZoomSteppingValues(float stepOut,
float stepIn) |
static void |
setLanguage(java.lang.String language)
Set the used language
Set the used language for the names of POI layers.
|
static void |
setLorryOptions(LorryOptions lorryOptions)
Set the Lorry settings.
|
static void |
setManeuverGeneratorSettings(ManeuverGeneratorSettings maneuverSettings)
Set the maneuver generator settings.
|
static void |
setMapViewStyles(int mapView,
boolean renderHouseNr,
boolean renderStreetNames)
Configure some settings about rendering details.
|
static void |
setMetric(int metric)
Set the metric used for Navigation/guidance information
Valid values are:
0 = Set to metric system (m, km)
1 = Set to miles (yd, mi)
2 = Set to miles (yd, mi) suitable for USA
Bug: Currently there is no explicit error code being returned.
|
static void |
setNavigationSettings(NavigationSettings navigationSettions)
Set the navigation settings
Note that some changes don't have effect unless a navigation is initiated by calling
loadRoute(String, TargetDescription) ,
#calculateRoute(NativeArray) or
#prepareNavigationForTour(Observer) . |
static void |
setRoutingOptions(RouteOptions routeOptions)
Set the routing options
|
static void |
setTrafficSearchWebConfiguration(java.lang.String url,
java.lang.String token)
Set the url and the security token for a traffic web search
|
static void |
showPOILayer(int layerId,
boolean show)
Interface to activate/deactivate POI layers for rendering within the map.
|
static void |
skipCurrentTarget()
Skip the current target
Sometimes the current target (stop over point) can not be reached or the
client decides to go already to the next stop over point.
|
static void |
trackingMode(boolean enable,
int i,
int j)
Start tracking mode
The tracking mode should be used if there is no need for navigation any
longer.
|
static int |
transformCountryCodeToPtvCode(CountryCodeFormat sourceFormat,
java.lang.String cc) |
static java.lang.String |
transformPtvCodeToCountryCode(CountryCodeFormat destinationFormat,
int ptvCode) |
public static int SDK_GEOCONVERSION_FACTOR
CoordinateSystem.GEODEZ
are stored when stored as integral
values.public static void initialize(java.lang.String mapPath, java.lang.String mapName, java.lang.String addrPath, java.lang.String appPath) throws NavigationException
mapPath
- The physical path to the map files (e.g. L"c:\\map\\" or
"/storage card/maps/") Don't forget the trailing path
separator. Both slash and backslash are supported.mapName
- The name of the map used (e.g. L"dac" or L"ita_130_eur").
Don't specify a file name with file extension here! May be
empty.addrPath
- Directory which contains the POI data (.dat and .opm) and the
addr.uni (if available). This parameter may be NULL. Even if
no path is specified the bmp/ subdirectory within the
application's directory will be searched for bitmaps (.opm).NavigationException
- In case the error code is neither SDKErrorCode.Ok
nor
SDKErrorCode.AlreadyInitialized
the initialization
has failed. E.g. SDKErrorCode.NoMap
is being returned
when there was no map to be opened, but nevertheless the SDK
itself is initialized now.public static void initialize(java.io.File mapPath, java.lang.String mapName, java.io.File addrPath, java.io.File appPath) throws NavigationException
mapPath
- The physical path to the map files (e.g. L"c:\\map\\" or
"/storage card/maps/") Don't forget the trailing path
separator. Both slash and backslash are supported.mapName
- The name of the map used (e.g. L"dac" or L"ita_130_eur").
Don't specify a file name with file extension here! May be
empty.addrPath
- Directory which contains the POI data (.dat and .opm) and the
addr.uni (if available). This parameter may be NULL. Even if
no path is specified the bmp/ subdirectory within the
application's directory will be searched for bitmaps (.opm).NavigationException
- In case the error code is neither SDKErrorCode.Ok
nor
SDKErrorCode.AlreadyInitialized
the initialization
has failed. E.g. SDKErrorCode.NoMap
is being returned
when there was no map to be opened, but nevertheless the SDK
itself is initialized now.public static void finalizeSDK() throws NavigationException
NavigationException
public static SDKVersion getAPIVersion() throws NavigationException
NavigationException
public static int initMapView(android.graphics.Bitmap bitmap) throws NavigationException
MapView
.
An application can contain more than one MapView. This allows to show
multiple maps in one application. The MapViews are independent from each
other. This means they can show different sections of a map at the same
time.
MapViews are memory consuming (a multiple of the amount
required just for the internal bitmap representation. So watch the memory
footprint and avoid creating too many unused MapViews.bitmap
- The bitmap into which to draw the map.NavigationException
- Typical error codes are SDKErrorCode.InvalidParameter
or SDKErrorCode.OutOfResources
.public static MapInformationResults getAvailableMaps()
public static Result<MapInformation> getMapInformation(int mapIdx) throws NavigationRuntimeException
MapInformation
structure
is not filled, if the map is currently closed.mapIdx
- Parameter to identify the map. (valid range from 0 to
getMapCount()
- 1).
A value of "-1" returns information about the current mapNavigationException
- if an error occurs.NavigationRuntimeException
public static int getMapByPosition(Position pos) throws NavigationException, NavigationException
NavigationException
- if an error occurs.public static void setMapViewStyles(int mapView, boolean renderHouseNr, boolean renderStreetNames) throws NavigationException
mapView
- Handle to the MapView/MapDC.renderHouseNr
- Dis/enable rendering of house numbers in 2d mode. In 3d they
get never rendered.renderStreetNames
- Dis/enable rendering of street names in 2d mode. In 3d they
get never rendered.NavigationException
- if an error occurs.public static MapViewStyles getMapViewStyles(int mapView) throws NavigationException
mapView
- Handle to the MapView/MapDC.NavigationException
- if an error occurs.public static int getMapCount() throws NavigationRuntimeException
NavigationException
- if an error occurs.NavigationRuntimeException
public static void changeMap(int mapIdx) throws NavigationRuntimeException
mapIdx
- Parameter to identify the map. (valid range from 0 to
- 1
)NavigationException
- if an error occurs.NavigationRuntimeException
public static short convertGeoHeading(int heading)
heading
- The standard heading to convert [0=north, clockwise]public static Result<MatchedWayPointArray> calculateViaRoute(NativeArray<WayPoint> wayPoints, NativeArray<Position> viaPoints, int[] viaRadius) throws NavigationException
NavigationException
public static Result<MatchedWayPointArray> calculateViaRoute(NativeArray<WayPoint> wayPoints, NativeArray<Position> viaPoints, int[] viaRadius, Observer observer) throws NavigationException
NavigationException
public static void createRouteFromSVPPoints(int count, SVPWayPointArray svpWaypoints, long innerColor, long outerColor) throws NavigationException
NavigationException
public static SearchResults searchTown(SearchRequest request, int count, boolean mergeTowns) throws NavigationException
SearchResults.get(int)
with the appropriate index or
iterate over the results in a foreach loop.
The memory allocated by the API has to be freed by calling SearchResults.destroy()
;request
- SearchRequest that contains the information to search for.
Valid parameters for the SearchKind in the SearchRequest are:
SDK_SK_TOWNBYNAME for a standard town search
SDK_SK_TOWNBYNAME_SORTED for sorting the result by the category (an indication of the
size of a town).count
- maximum number of returned results.mergeTowns
- Only one entry per town will be returned.SearchResults.get(int)
with the appropriate index to get a single result
or iterate over the elements with a foreach loop.NavigationException
- if an error occurs.public static SearchResults searchTown(SearchRequest request, int count) throws NavigationException
SearchResults.get(int)
with the appropriate index or
iterate over the results in a foreach loop.
The memory allocated by the API has to be freed by calling SearchResults.destroy()
;request
- SearchRequest that contains the information to search for.
Valid parameters for the SearchKind in the SearchRequest are:
SDK_SK_TOWNBYNAME for a standard town search
SDK_SK_TOWNBYNAME_SORTED for sorting the result by the category (an indication of the
size of a town).count
- maximum number of returned results.SearchResults.get(int)
with the appropriate index to get a single result
or iterate over the elements with a foreach loop.NavigationException
- if an error occurs.public static SearchResults searchStreet(SearchRequest searchRequest, int maxResultCount, SearchResult townDescription) throws NavigationException
SearchResults.get(int)
with the appropriate index or
iterate over the results in a foreach loop.
The memory allocated by the API has to be freed by calling SearchResults.destroy()
;searchRequest
- SearchRequest that contains the information to search for.
Valid parameters for the SearchKind in the SearchRequest are:
SDK_SK_STREETBYNAME for a standard street search
SDK_SK_STREETBYNAME_SORTED for sorting the result by the distance to the town given
in the townDescription.
By specifying SearchRequest.request="*" one may search for all
streets within a town.maxResultCount
- Number of the maximum returned results.townDescription
- Existing SearchResult with town to search in.SearchResults.get(int)
with the appropriate index to get a single result
or iterate over the elements with a foreach loop.NavigationException
- if an error occurs.public static SearchResults searchHouseNr(SearchRequest searchRequest, int maxResultCount, SearchResult townDescription, SearchResult streetDescription) throws NavigationException
SearchResults.get(int)
with the appropriate index or
iterate over the results in a foreach loop.
The memory allocated by the API has to be freed by calling SearchResults.destroy()
;searchRequest
- SearchRequest that contains the information to search for.
Valid parameters for the SearchKind in the SearchRequest are:
SDK_SK_HNR.maxResultCount
- Number of the maximum returned results.
So far only single house numbers may be searched. If the
result however contains a range as indicated by the name
(string) the result is an explicit extrapolation of existing
data. E.g. the search for the house number "11" may have the
result string "3-11" to indicate that the closest match
(numerically!) within the data was house number "3", there is
no dataset for "11".townDescription
- Existing SearchResult with town to search in.streetDescription
- Existing SearchResult with street to search in.SearchResults.get(int)
with the appropriate index to get a single result
or iterate over the elements with a foreach loop.NavigationException
- if an error occurs.public static SearchResults searchPostcode(SearchRequest searchRequest, int maxResultCount, boolean majorOnly, boolean oneEntryPerTown, int distinctHouseNumber) throws NavigationException
SearchResults.get(int)
with the appropriate index or
iterate over the results in a foreach loop.
The memory allocated by the API has to be freed by calling SearchResults.destroy()
;searchRequest
- SearchRequest that contains the information to search for.
Valid parameters for the SearchKind in the SearchRequest are:
SDK_SK_TOWNBYPOSTCODE for standard postcode search in all countries,
SDK_SK_NL6POSTCODE for 6 digit postcode search in NL and
SDK_SK_UK7POSTCODE for 7 digit postcode search in the UKmaxResultCount
- Number of the maximum returned results.majorOnly
- Only major cities are considered. Only used in standard postcode search (SearchKind == SDK_SK_TOWNBYPOSTCODE)oneEntryPerTown
- Only one entry per town is found. Only used in standard postcode search (SearchKind == SDK_SK_TOWNBYPOSTCODE)distinctHouseNumber
- House number to get an exacter match of the results. If set to -1,
all results for the given postcode will be returned. Only used for NL6 postcodes(SearchKind == SDK_SK_NL6POSTCODE),
standard postcode searches will ignore the number.SearchResults.get(int)
with the appropriate index to get a single result
or iterate over the elements with a foreach loop.NavigationException
- if an error occurs.public static SearchResults searchPostcode(SearchRequest searchRequest, int maxResultCount, boolean majorOnly, boolean oneEntryPerTown) throws NavigationException
SearchResults.get(int)
with the appropriate index or
iterate over the results in a foreach loop.
The memory allocated by the API has to be freed by calling SearchResults.destroy()
;searchRequest
- SearchRequest that contains the information to search for.
Valid parameters for searchRequest.SearchKind are:
SDK_SK_TOWNBYPOSTCODE for standard postcode search in all countries,
SDK_SK_NL6POSTCODE for 6 digit postcode search in NL and
SDK_SK_UK7POSTCODE for 7 digit postcode search in the UKmaxResultCount
- Number of the maximum returned results.majorOnly
- Only major cities are considered. Only used in standard postcode search (SearchKind == SDK_SK_TOWNBYPOSTCODE)oneEntryPerTown
- Only one entry per town is found. Oonly used in standard postcode search (SearchKind == SDK_SK_TOWNBYPOSTCODE)SearchResults.get(int)
with the appropriate index to get a single result
or iterate over the elements with a foreach loop.NavigationException
- if an error occurs.public static SearchResults searchCrossing(SearchRequest searchRequest, int maxSearchResult, SearchResult streetDescription) throws NavigationException
SearchResults.get(int)
with the appropriate index or
iterate over the results in a foreach loop.
The memory allocated by the API has to be freed by calling SearchResults.destroy()
;searchRequest
- SearchRequest that contains the information to search for.
Valid parameters for searchRequest.SearchKind are:
SDK_SK_CROSSINGmaxSearchResult
- Number of the maximum returned results.streetDescription
- Former SearchResult with town and street to search in.SearchResults.get(int)
with the appropriate index to get a single result
or iterate over the elements with a foreach loop.NavigationException
- if an error occurs.public static Result<SearchResult> getResult(int searchResultHandle, int searchResultIndex, boolean generalizePLZ) throws NavigationRuntimeException
searchResultHandle
- handle to the search results.searchResultIndex
- Row index of the wanted result.generalizePLZ
- summarize postal codes?NavigationRuntimeException
public static void destroySearchResult(long searchResultHandle) throws NavigationException
searchResultHandle
- handle to the search results of which to free the memory.NavigationException
- if an error occurs.public static java.lang.String getErrorDescription(SDKErrorCode errorCode) throws NavigationException
errorCode
- Error code. See the enumeration SDKErrorCode
for valid
error codes.NavigationException
- if an error occurs.public static int getMetric() throws NavigationException
NavigationException
- if an error occurs.public static void setMetric(int metric) throws NavigationException
metric
- the current set metricNavigationException
- if an error occurs.public static java.lang.String getLocalizedDistanceString(int value, boolean quantify, boolean allowNow, java.lang.String nowString, char decimalSeparator) throws NavigationException
value
- The distance in meters to convert to a well human readable string for the currently set metricquantify
- Flag whether the distance should be quantified to a reasonable value for the current set metricallowNow
- If set, replace the distance in case of a "now" maneuver with the string given in nowStringnowString
- The string to be returned if allowNow is set and we have a "now" maneuverdecimalSeparator
- decimal separator used for the string formattingNavigationException
- if an error occurs.public static java.lang.String getLocalizedDistanceString(long distanceInMeters, boolean quantify)
getLocalizedDistanceString(long, boolean, boolean, String)
with the parameter allowNow set to false and no nowString.distanceInMeters
- The distance in meters to convert to a well human readable string for the currently set metricquantify
- Flag whether the distance should be quantified to a reasonable value for the current set metricpublic static java.lang.String getLocalizedDistanceString(long distanceInMeters, boolean quantify, boolean allowNow, java.lang.String nowString)
getLocalizedDistanceString(int, boolean, boolean, String, char)
with the separator set automatically from the system.distanceInMeters
- The distance in meters to convert to a well human readable string for the currently set metricquantify
- Flag whether the distance should be quantified to a reasonable value for the current set metricallowNow
- If set, replace the distance in case of a "now" maneuver with the string given in nowStringnowString
- The string to be returned if allowNow is set and we have a "now" maneuverpublic static java.lang.String getLocalizedUnitName(int category, boolean bigUnit) throws NavigationException
category
- The physical quantity.
0 for distances.
1 for heights.
2 for velocity.bigUnit
- true, if "big" units (i.e. kilometers, miles) or false, if "small" units (meters, yards, feet) should
be usedNavigationException
- if an error occurs.public static double getLocalizedUnitValue(int category, boolean bigUnit, double value) throws NavigationException
category
- The physical quantity.
0 for distances.
1 for heights.
2 for velocity.bigUnit
- true, if "big" units (i.e. kilometers, miles) or false, if "small" units (meters, yards, feet) should
be usedvalue
- The value to transform and localizeNavigationException
- if an error occurs.public static java.lang.String getLanguage() throws NavigationException
setLanguage(String)
about usage of language settings within the
Navigation SDK.setLanguage(String)
), so one should not keep references around,
but copy that string.NavigationException
- if an error occurs.public static void setLanguage(java.lang.String language) throws NavigationException
language
- Language code according to ISO 639-1 (alpha-2) (e.g.
L"de"=German, L"en"=English, L"da"=Danish, L"fr"=French). Use
lower-case strings, parsing may be case-sensitive.NavigationException
- if an error occurs.public static Result<RouteOptions> getRoutingOptions() throws java.lang.NullPointerException, NavigationException
java.lang.NullPointerException
- if there are no routing options.NavigationException
- if an error occurs.public static void setRoutingOptions(RouteOptions routeOptions) throws NavigationException
routeOptions
- Structure with the new routing options to set. If NULL the
default routing options are restored. One may use
getRoutingOptions()
before calling
setRoutingOptions(RouteOptions)
to retrieve the
default values.NavigationException
- if an error occurs.public static Result<LorryOptions> getLorryOptions() throws java.lang.NullPointerException, NavigationException
java.lang.NullPointerException
- if there are no lorry settingsNavigationException
- if an error occurs.public static void setLorryOptions(LorryOptions lorryOptions) throws NavigationException
lorryOptions
- Structure to be filled with the new settings. If null the
default settings are restored. One may use
getLorryOptions()
before calling getLorryOptions()
to
retrieve the default values.NavigationException
- if an error occurs.public static void loadRoute(java.lang.String routeFileName, TargetDescription targetDescription) throws NavigationException
routeFileName
- Name of existing route file. The route will be appended to
existing routes which have been calculated:
#calculateRoute(NativeArray)
,
or loaded:
loadRoute(String, TargetDescription)
.
If the file name is null, all previous routes will be discarded.targetDescription
- Supply additional information about route. Maybe null.NavigationException
- if an error occurs.public static void saveRoute(java.lang.String routeFileName, boolean overwrite) throws NavigationException
routeFileName
- file name where the route will be saved tooverwrite
- If true, overwrite an existing file, else return an error
if the file already existsNavigationException
- if an error occurs.public static int getManeuverCount(int listMode) throws NavigationException
listMode
- ListMode The list mode of the result.
Valid values are:
0 = only the navigation relevant maneuver stop-off points will be returned
1 = all maneuver stop-off points on the route will be returnedNavigationException
- if an error occurs.public static Result<ManeuverDescription> getManeuverPoint(int listMode, int stopOffId) throws java.lang.NullPointerException, NavigationException
listMode
- The desired ListMode type (lmComplete or lmImportant).stopOffId
- The ID of the stop-off point. The first stop-off has id=1!Result.getError()
.
To retrieve the results itself, call Result.getResult()
.java.lang.NullPointerException
- if no ManeuverDescription-Information receivedNavigationException
- if an error occurs.public static void createGPSSimulation(java.lang.String simFileName) throws NavigationException
simFileName
- Name of file to be created.NavigationException
- if an error occurs.public static void createGPSSimulation(java.io.File simFilePath) throws NavigationException
simFilePath
- Path of file to be created.NavigationException
- if an error occurs.public static Result<NavigationSettings> getNavigationSettings() throws java.lang.NullPointerException, NavigationException
java.lang.NullPointerException
- if no NavigationSettingsNavigationException
- if an error occurs.public static void setNavigationSettings(NavigationSettings navigationSettions) throws NavigationException
loadRoute(String, TargetDescription)
,
#calculateRoute(NativeArray)
or
#prepareNavigationForTour(Observer)
.navigationSettions
- New settings. One may use getNavigationSettings()
before
calling setNavigationSettings(NavigationSettings)
() to retrieve the default
values.NavigationException
- if an error occurs.public static Result<NavigationInformation> getGuidanceInformation(GPSData gpsData) throws NavigationException, java.lang.NullPointerException
gpsData
- object with actual GPS information. This argument must not be
NULL! (as it was allowed in previous versions of the
Navigation SDK)NavigationInformation
for more details.NavigationException
- if an error occursjava.lang.NullPointerException
- if no GPSData given or no result from the SDK.public static boolean checkIfTunnel(NavigationInformation navigationInformation, GPSData gpsData) throws NavigationException, java.lang.NullPointerException
GPSData.getExtraPolatedPos()
in the GPSData class as long as the extrapolation is active.navigationInformation
- the NavigationInformationgpsData
- object with actual GPS information.NavigationException
- if an error occurred.java.lang.NullPointerException
- if no GPSData or NavigationInformationpublic static Result<Trace> getRouteTrace() throws NavigationException, java.lang.NullPointerException
getRouteTraces()
instead.
That call must be matched with suitable calls to freeRouteTrace(Trace)
to avoid memory leaks.NavigationException
- if an error occurs.java.lang.NullPointerException
- if no Trace returned*public static Result<Trace> getRouteTraceAhead(boolean onlyToNextStation) throws NavigationException, java.lang.NullPointerException
freeRouteTrace(Trace)
to avoid memory leaks.onlyToNextStation
- if set to true, return the trace from the current position to the next stationNavigationException
- if an error occurs.java.lang.NullPointerException
- if no Trace returned*public static void freeRouteTrace(Trace trace) throws NavigationException, java.lang.NullPointerException
trace
- route trace structure which had been previously set by
or {@link #getRouteTraceAhead(boolean)}
.NavigationException
- if an error occursjava.lang.NullPointerException
- if no trace was given in.public static Result<RouteTraces> getRouteTraces() throws NavigationException
NavigationException
- if an error occurspublic static void skipCurrentTarget() throws NavigationException
NavigationException
- if an error occurs.public static void trackingMode(boolean enable, int i, int j) throws NavigationException
MapView.setCenter(GeoPosition)
to adjust the map position result in setting the
most suitable map, so there's always the best map available!. Since
switching maps may not be always the intent of the user this mode can be
switched off. There is no need to stop this mode prior to calculating a
new route and starting navigation afterwards.enable
- If set to true activate the map tracking mode, otherwise
deactivatei
- reserved for future applications. Use 0 for now.j
- reserved for future applications. Use 0 for now.NavigationException
- if an error occurspublic static int getResultCount(long searchRequestIndex) throws NavigationException
searchRequestIndex
- Index of the search.NavigationException
- if an error occurs.public static ParseTownNameResult parseTownName(java.lang.String townResultName) throws NavigationException
townResultName
- town name as returned from a suitable interface, e.g.
SearchTown. That's the value found in the name field of a
SearchResult
NavigationException
- if an error occurspublic static GeoCodeResult geoCode(Address searchAddress) throws NavigationException
getGeoCodeResult(long)
.
To avoid memory leaks, clear the result with GeoCodeResult.destroy()
searchAddress
- address to search for.NavigationException
- if an error occurs.public static GeoCodeResult inverseGeoCode(Position position) throws NavigationException, java.lang.NullPointerException
getGeoCodeResult(long)
To avoid memory leaks, clear the result with destroyGeoCodeResult(long)
position
- position (Mercator coordinate) to be geocodedNavigationException
- if an error occurs;java.lang.NullPointerException
public static GeoCodeResult getGeoCodeResult(long index) throws NavigationException
NavigationException
public static void destroyGeoCodeResult(long index) throws NavigationException
index
- the index of the geocode resultNavigationException
- if an error occurs.public static Result<RoadMatchInformation> matchRoad(WayPoint wayPoint) throws NavigationException, java.lang.NullPointerException
wayPoint
- The data that is returned by a gps device. If it is NULL, road
match uses the last result of getGuidanceInformation() to fill
the data structure pRoadMatchInformation.NavigationException
- if an error occurs.java.lang.NullPointerException
- if no result came backpublic static void addPOIPath(java.lang.String addrPath) throws NavigationException
addrPath
- New search path for POI data to be added. If null then all
paths are removed.NavigationException
- if an error occurs.public static void addPOIPath(java.io.File mapPath) throws NavigationException
NavigationException
public static void removePOIPath(java.lang.String addrPath) throws NavigationException
addrPath
- Search path for POI data to be removed.NavigationException
- if an error occured.public static void removePOIPath(java.io.File mapPath) throws NavigationException
NavigationException
public static void addMapPath(java.lang.String mapPath) throws NavigationException
mapPath
- New search path for map data to be added.NavigationException
- if an error occurs.public static void removeMapPath(java.io.File mapPath) throws NavigationException
mapPath
- Search path for map data to be removed.NavigationException
- if an error occurs.public static void removeMapPath(java.lang.String mapPath) throws NavigationException
mapPath
- Search path for map data to be removed.NavigationException
- if an error occurs.public static void addMapPath(java.io.File mapPath) throws NavigationException
mapPath
- New search path for map data to be added.NavigationException
- if an error occurs.public static POISearchResults searchPOI(int layerId, POISearchRequest searchRequest, int maxSearchResult) throws NavigationException
POISearchResults.get(int)
with the appropriate index or
iterate over the results in a foreach loop.
The memory allocated by the API has to be freed by calling POISearchResults.destroy()
.layerId
- unique (during runtime) identifier to a POI layer (see @link
getPOILayerByName(String)
for more details). If -1 is specified then
all layers are being used. Note that this may fail if the POI
data files have been generated with a goalconv.dll earlier
than 2006-11-07! POIs generated by POIImporter are fine.searchRequest
- a parameter of type POISearchRequestmaxSearchResult
- Number of the maximum returned resultsPOISearchResults.get(int)
with the appropriate index to get a single result
or iterate over the elements with a foreach loop.
Note: the result object has to be freed by a call of
POISearchResults.destroy()
.NavigationException
- if an error occurs.public static Result<POISearchResult> getPOIResult(long searchRequestIndex, long searchResultIndex) throws NavigationRuntimeException, java.lang.NullPointerException
searchRequestIndex
- Index of the search resultsearchResultIndex
- Index of the wanted result rowNavigationRuntimeException
- if an error occurs.java.lang.NullPointerException
- if no result from the SDKpublic static void destroyPOISearchResult(long searchRequestIndex) throws NavigationException
searchRequestIndex
- Index of the result to destroy.NavigationException
- if an error occurs.public static int getPOILayerCount() throws NavigationException
initialize(File, String, File, File)
.
To each POI layer an ID between 0 and getPOILayerCount()
- 1 gets
assigned. Use getPOILayerName(int)
and getPOIItemCount(int)
to retrieve
more information about the POI layer.NavigationException
- if an error occurs.public static java.lang.String getPOILayerName(int layerId) throws NavigationException
layerId
- The ID of the POI layer.NavigationException
- if an error occurs.public static int getPOILayerByName(java.lang.String layer) throws NavigationException
layer
- the name of the requested layerNavigationException
- if an error occurs.public static int getPOIItemCount(int layerId) throws NavigationException
layerId
- The ID of the POI layer.NavigationException
- if an error occurs.public static void showPOILayer(int layerId, boolean show) throws NavigationException
layerId
- The ID of the POI layer.show
- Use true to activate POI layer rendering on the map, false to disableNavigationException
- if an error occurs.public static int createBuddy(java.lang.String bitmapName, java.lang.String buddyName) throws NavigationRuntimeException
positionBuddy(int, long)
.
It is also possible to add alerts to it (like entering or leaving certain areas
around the buddy) and to check, if the alert has been fired.
If the buddy is not needed anymore, you can remove it by calling deleteBuddy(int)
.
Creation of the buddy doesn't show it, because it initially has no position on the map.
You have to call positionBuddy(int, long)
once to render it.bitmapName
- Path to a bitmap.buddyName
- Name of the buddy that will be displayed on the map.NavigationRuntimeException
- if an error occurs.public static void positionBuddy(int buddyId, Position center) throws NavigationRuntimeException
buddyId
- Valid buddy id (returned formerly by a call to createBuddy(String, String)
.center
- The coordinates of the center (Mercator).NavigationRuntimeException
- if an error occurs.public static int addBuddyAlert(int buddyId, int radius, BuddyAlertType alertType) throws NavigationRuntimeException
checkBuddyAlerts(Position)
. The position
parameter in checkBuddyAlerts(Position)
is checked against the circular area around the
buddy.
A buddy can have multiple alerts like in-alerts at 200, 300 and 400m and out-alerts at 100 and 300m.
Attention: An alert will rise only one time: When the position, given in
checkBuddyAlerts(Position)
, switches between inside and outside the area.
So, if you get a positive check from checkBuddyAlerts(Position)
for a particular
event, this event will not show up anymore, even if the transition situation reoccurs.
You can't use an alert for checking if someone is inside or outside the radius.
You only can check, if someone transits the zone.
Because the alert will only rise once, you have to create a new one for this buddy if you
wanted to be informed multiple times.buddyId
- Valid buddy id.radius
- radius of alertalertType
- Set the alertType, inside or outsideNavigationRuntimeException
- if an error occurs.public static int deleteBuddyAlert(int buddyId, int buddyAlertId) throws NavigationRuntimeException
buddyId
- Valid buddy id.buddyAlertId
- Valid buddy alert id.NavigationRuntimeException
- if an error occurs.public static BuddyAlertState checkBuddyAlerts(Position center) throws NavigationRuntimeException
center
- position current gps-positionNavigationRuntimeException
- if an error occurs.public static void deleteBuddy(int buddyId) throws NavigationRuntimeException
buddyId
- Valid buddy id.NavigationRuntimeException
- if an error occurs.public static int getBuddyCount() throws NavigationRuntimeException
NavigationRuntimeException
- if an error occurs.public static int addImage(java.lang.String bitmapName, Position center) throws NavigationRuntimeException
bitmapName
- Path to a bitmap.center
- The coordinates of the center (Mercator)NavigationRuntimeException
- if an error occurs.public static void positionImage(int imageId, Position center) throws NavigationRuntimeException
imageId
- Valid image id.center
- The coordinates of the center (Mercator).NavigationRuntimeException
- if an error occurs.public static void deleteImage(int imageId) throws NavigationRuntimeException
imageId
- Valid image id.NavigationRuntimeException
- if an error occurs.public static void deleteImages() throws NavigationRuntimeException
NavigationRuntimeException
- if an error occurs.public static java.lang.String getManeuverText(NavigationInformation info, StringRetriever retriever) throws NavigationRuntimeException
SDKManeuverTextID
.
We have mappings for several languages, both for TTS and sound output.info
- current navigation information see NavigationInformation
for more detailsretriever
- The retriever class (must be sublcassed from StringRetriever class and must override the getText() functionNavigationRuntimeException
- if an error occurs.public static Result<ManeuverGeneratorSettings> getManeuverGeneratorSettings() throws java.lang.NullPointerException, NavigationRuntimeException
java.lang.NullPointerException
- if there are no maneuver settings.NavigationRuntimeException
- if an error occurs.public static void setManeuverGeneratorSettings(ManeuverGeneratorSettings maneuverSettings) throws NavigationRuntimeException, java.lang.NullPointerException
maneuverSettings
- the ManeuverGeneratorSettingsNavigationRuntimeException
- if an error occurred.java.lang.NullPointerException
- if no ManeuverGeneratorSettingspublic static void setTrafficSearchWebConfiguration(java.lang.String url, java.lang.String token) throws NavigationRuntimeException
url
- The url of the traffic web service.token
- The security token needed for the request.NavigationRuntimeException
- if an error occurs.public static int getTrafficDelayOnRoute(boolean completeRoute, int alternativeRouteIndex) throws NavigationRuntimeException
completeRoute
- If set to true, the delay on the whole route will be returned, otherwise, the delay from the
current position on (in this case, a navigation must have been started to get the delay, if not, 0 will be returned).alternativeRouteIndex
- The index of the corresponding alternative route. Set to 0 if you don't use alternative routes.NavigationRuntimeException
- if an error occurs.public static void refreshTrafficTracesAndIcons(boolean showIconsOnlyOnRoute) throws NavigationRuntimeException
showIconsOnlyOnRoute
- If set to true, only traffic incidents on the route will show an icon, otherwise all traffic icons will be shown.NavigationRuntimeException
- if an error occurs.public static void removeTrafficTraces() throws NavigationRuntimeException
searchTrafficInformation(GeoPosition, Observer)
was executed successfully.
This interface is for clearing the traces manually, for instance, if the traffic search will not be needed anymore.NavigationRuntimeException
- if an error occurs.public static void searchTrafficInformation(GeoPosition position, Observer observer) throws NavigationRuntimeException
refreshTrafficTracesAndIcons(boolean)
The traffic incidents can be retrieved by calling getTrafficSearchResults()
position
- The geodecimal position from where to search from (if a route is available,
the search will be done around the route).observer
- The onFinished() method of the observer will be called when the search has
finished (must be implemented by the caller).NavigationRuntimeException
- if an error occurs.public static void searchTrafficInformation(Position position, Observer observer) throws NavigationRuntimeException
searchTrafficInformation(GeoPosition, Observer)
except that the position
parameter is given in mercator coordinates instead of geodecimal coordinates.position
- The mercator position from where to search from.observer
- See searchTrafficInformation(GeoPosition, Observer)
for detailsNavigationRuntimeException
- if an error occurs.public static Result<TrafficResults> getTrafficSearchResults()
Result.getError()
To get the actual results as an array of TrafficSearchResults, call Result.getResult()
.java.lang.NullPointerException
- if there is no search result objectNavigationRuntimeException
- if an error occurs.public static RouteInformation getRouteInformation(int routeIndex, int alternative)
getAlternativeRouteCount()
.routeIndex
- the index of the route about which to return the route information for a multi station tour.
This value is ignored if no multi station tour is calculated.
In the case of a multi station tour '-1' will return the accumulated route information
over all routes. '0' returns the route information of the current route. '1' returns
the route information of the first inactive route, '2' returns the route information of
the second inactive route, and so on.alternative
- the index of the route alternative.
If alternative route calculation is not activated or the routeIndex parameter is
not set to the current route (routeIndex == 0) this parameter will be ignored.public static void setAlternativeRouteActive(int alternative)
getAlternativeRouteCount()
to get the number of alternative routes available.
The active route will be highlighted in the map view, while the other alternative routes will get greyed out.alternative
- The index of the alternative route to highlight.public static int getAlternativeRouteActive()
public static int getAlternativeRouteCount()
public static CalculateTourResult calculateTour(Tour tour, Observer observer) throws CalculateTourException
NavigationSDK#addStationToTour(WayPoint)
,
NavigationSDK#addStationsToTour(NativeArray)
or NavigationSDK#addSVPsToTour(NativeArray)
),
and activates the guidance of the first route. This method has to be called before a navigation
on a tour can be started. It also needs to be called if another station was added after the
navigation on a tour was started.
Calculating a tour to one or multiple stations is done by the following steps:
- Optionally set the RouteOptions
to the wanted values.
- Create a tour with NavigationSDK#createTour(WayPoint)
(this sets also the start position)
- Add as many stations as wanted by calling NavigationSDK#addStationToTour(WayPoint)
,
NavigationSDK#addStationsToTour(NativeArray)
or NavigationSDK#addSVPsToTour(NativeArray)
.
- Call this function to calculate the tour
You can also use this function to calculate standard A-B routes by adding only one station with NavigationSDK#addStationToTour(WayPoint)
.
In this case, there is also the possibility to calculate alternative routes (up to 3) by setting
the routing type with RouteOptions.setRouteCalculationType(long, int)
and setting the route options before calling this function.
See also setAlternativeRouteActive(int)
, getAlternativeRouteActive()
,
getAlternativeRouteCount()
and NavigationSDK#getAlternativeRouteInformation(int, int)
When an error in the calculation of tour section occurs, the error code can be get by calling
ErrorResultHandler.getError()
. The tour section which caused the error can be
retrieved by CalculateTourResult.getTourSection()
.observer
- optional progress observerCalculateTourException
public static void setAutoZoomSpeedScales(boolean trackingMode, int[] marginalSpeeds, int[] scaleFactor2d, int[] scaleFactor3d) throws NavigationException
trackingMode
- If set to SDK_TRUE, set the tracking speeds and scales, else the navigation speeds and scales will be setmarginalSpeeds
- The speeds at which the scale should changescaleFactor2d
- The scales for the MarginalSpeeds in 2dscaleFactor3d
- The scales for the MarginalSpeeds in 3dNavigationException
- if an error occurs.public static void setAutoZoomScaleMargins(int minZoomSlow2d, int minZoomFast2d, int maxZoom2d, int minZoomSlow3d, int minZoomFast3d, int maxZoom3d) throws NavigationException
minZoomSlow2d
- Minimum zoom level for velocities < 72 km/h in maneuver zoom (2d)minZoomFast2d
- Minimum zoom level for velocities >= 72 km/h in maneuver zoom (2d)maxZoom2d
- Maximum zoom level in maneuver zoom (2d)minZoomSlow3d
- Minimum zoom level for velocities < 72 km/h in maneuver zoom (3d)minZoomFast3d
- Minimum zoom level for velocities >= 72 km/h in maneuver zoom (3d)maxZoom3d
- Maximum zoom level in maneuver zoom (3d)NavigationException
- if an error occurs.public static void setAutoZoomSteppingValues(float stepOut, float stepIn) throws NavigationException
stepOut
- Incremental scale value for stepping out, default is 1stepIn
- Incremental scale value for stepping in, default is 30NavigationException
- if an error occurs.public static ManeuverArrow getManeuverArrow(ManeuverDescription description, CrossingView crossing)
description
- crossing
- public static int transformCountryCodeToPtvCode(CountryCodeFormat sourceFormat, java.lang.String cc)
public static java.lang.String transformPtvCodeToCountryCode(CountryCodeFormat destinationFormat, int ptvCode)
public static void loadVehicleProfile(java.io.File profilePath)
public static java.lang.String getProfileName(java.io.File profilePath, java.lang.String cc)