public class NavigationInformation
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected boolean |
jniCMemOwn |
protected long |
jniCPtr |
com.ptvag.navigation.sdk.NativeObject |
parent |
Constructor and Description |
---|
NavigationInformation()
Constructor
|
NavigationInformation(long cPtr,
boolean cMemoryOwn)
Only for internal use - don't try to call this from Java.
|
Modifier and Type | Method and Description |
---|---|
void |
delete()
Kills rubbish if owning the object.
|
protected void |
finalize() |
int |
getCategory()
Returns the category of the current segment [0..4]
|
boolean |
getClosedArea()
Indicates if the vehicle is on "forbidden" road
|
Position |
getCorrectedPosOnRoute()
Returns the current position on route [Mercator] (+forecast, but that's not implemented)
|
int |
getCountryCode()
Returns the country code of the current segment
|
int |
getCourse()
Returns the current course [0..360[, head east, counter-clockwise
|
int |
getCourseOnRoute()
Returns the current course on route [0..360[, head east, counter-clockwise
|
static long |
getCPtr(com.ptvag.navigation.sdk.NativeObject obj) |
short |
getCrowFlightDirection()
Returns the direction to target [0..360[ 0=N, 90=E.
|
long |
getCrowFlightDistToDestination()
Returns the crow flight distance [m] from last matched position on
route to destination.
|
long |
getCrowFlightGPSDistToDestination()
Returns the crow flight distance [m] from current GPS position on route to
destination.
|
java.lang.String |
getCurrentStreetName()
Returns the name of the current street.
|
boolean |
getDestinationReached()
Destination reached?
|
long |
getDistToDestination()
Returns the distance [m] to destination.
|
long |
getDistToNextManeuver()
Returns the distance [m] to next maneuver.
|
long |
getDistToNextSpeedLimit()
Returns the distance to the next changing speed limit from the current position (normal conditions) [m].
|
long |
getDistToNextStation()
Returns the distance [m] to next station.
|
java.util.Date |
getEstimatedTimeOfArrival()
Returns the estimated time when the destination will be reached.
|
GuidanceKind |
getGuidanceKind()
Returns the guidance mode.
|
boolean |
getInTunnel()
Returns: Am I in a tunnel?
|
boolean |
getManeuverPointPassed()
Analyzes if a maneuver point has been passed since the last position?
|
boolean |
getNextCrossingInTown()
Checks: Is the next crossing _inside_ a town area?
|
GuidanceKind |
getNextGuidanceKind()
Returns the guidance mode.
|
ManeuverDescription |
getNextManeuver()
Returns the description of the next maneuver.
|
CrossingView |
getNextManeuverCrossingView()
Returns the information for drawing the crossing view for the next maneuver.
|
int |
getNextSpeedLimit()
Returns the next changing speed limit from the current position (normal conditions) [km/h].
|
boolean |
getNoTownUntilNextManeuver()
Checks: Only Non-City-Roads until next crossing?
|
boolean |
getOnBridge()
NOT IMPLEMENTED
|
Position |
getPos()
Returns the current position [Mercator].
|
Position |
getPosOnRoute()
Returns the current position on route [Mercator].
|
ReRouteMode |
getReRouteStatus()
Did the ReRoute status change?
|
int |
getRoadType()
Returns the road type of the current segment [0..14]
|
int |
getRoadTypeOfNextSpeedLimit()
Returns the road type of the segment of the next changing speed limit from the current position (normal conditions) [km/h].
|
int |
getRoundedDistFromNextToSecondNextManeuver()
Returns the distance from the next to the second next maneuver [m]
|
int |
getRoundedDistToNextManeuver()
Returns the distance to the next maneuver [m].
|
long |
getRouteLengthToNextManeuver()
Returns the distance [m] from previous maneuver to next maneuver.
|
ManeuverDescription |
getSecondNextManeuver()
Returns the description of the second next maneuver.
|
CrossingView |
getSecondNextManeuverCrossingView()
Returns the information for drawing the crossing view for the second next
maneuver.
|
boolean |
getSegmentBorderPassed()
Analyzes if a segment border been passed since the last position.
|
int |
getSpeedLimit()
Returns the speed limit on the current segment for cars [km/h].
|
int |
getSpeedLimitTruck()
Returns the speed limit on the current segment for trucks [km/h]
|
long |
getTimeToDestination()
Returns the time [s] to destination.
|
long |
getTimeToNextManeuver()
Returns the time [s] to next maneuver
|
long |
getTimeToNextStation()
Returns the time [s] to next station.
|
int |
getTrafficDelayOnRoute(boolean complete)
Get the current traffic delay on the complete route.
|
TruckWarnings |
getTruckWarningsCurrentSegment()
Returns truck warnings on current segment.
|
TruckWarnings |
getTruckWarningsNextSegment()
Returns the truck warnings on next segment.
|
short |
getVoiceOutputManeuverHint()
Returns the voice-output information.
0 if no voice output of the next maneuver is suggested.
|
boolean |
getWrongRoad()
Answers: Am I on the wrong road?
|
void |
setCategory(int category)
Sets the category of the current segment [0..4]
|
void |
setClosedArea(boolean closedArea)
Sets the information, the vehicle is on "forbidden" road.
|
void |
setCorrectedPosOnRoute(Position correctedPosOnRoute)
Sets the current position on route [Mercator] (+forecast, but that's not implemented)
|
void |
setCourse(int course)
Sets the current course [0..360[, head east, counter-clockwise
|
void |
setCourseOnRoute(int courseOnRoute)
Sets the current course on route [0..360[, head east, counter-clockwise
|
void |
setCrowFlightDirection(short direction)
Sets the direction to target [0..360[ 0=N, 90=E.
|
void |
setCrowFlightDistToDestination(long distance)
Sets the crow flight distance [m] from last matched position on
route to destination.
|
void |
setCrowFlightGPSDistToDestination(long distance)
Sets the crow flight distance [m] from current GPS position on route to
destination.
|
void |
setCurrentStreetName(java.lang.String streetName)
Sets the name of the current street.
|
void |
setDestinationReached(boolean destinationReached)
Sets Destination reached?
|
void |
setDistToDestination(long distToDestination)
Sets the distance [m] to destination.
|
void |
setDistToNextManeuver(long distance)
Sets the distance [m] to next maneuver.
|
void |
setDistToNextSpeedLimit(long distToNextSpeedLimit)
Sets the distance to the next changing speed limit from the current position (normal conditions) [km/h].
|
void |
setDistToNextStation(long distance)
Sets the distance [m] to next station.
|
void |
setGuidanceKind(GuidanceKind guidanceKind)
Sets the guidance mode.
|
void |
setInTunnel(boolean inTunnel)
Set: Am I in a tunnel?
|
void |
setManeuverPointPassed(boolean passed)
Sets if a maneuver point has been passed since the last position.
|
void |
setNextCrossingInTown(boolean nextCrossingInTown)
Sets if the next crossing is _inside_ a town area?
|
void |
setNextGuidanceKind(GuidanceKind guidanceKind)
Sets the guidance mode.
|
void |
setNextManeuver(ManeuverDescription nextManeuver)
Sets the description of the next maneuver.
|
void |
setNextManeuverCrossingView(CrossingView view)
Sets the information for drawing the crossing view for the next maneuver.
|
void |
setNextSpeedLimit(int nextSpeedLimit)
Sets the the next changing speed limit from the current position (normal conditions) [m].
|
void |
setNoTownUntilNextManeuver(boolean noTownUntilNextManeuver)
Sets, if only use Non-City-Roads until next crossing.
|
void |
setOnBridge(boolean onBridge)
NOT IMPLEMENTED
|
void |
setPos(Position position)
Sets the current position [Mercator].
|
void |
setPosOnRoute(Position posOnRoute)
Sets the current position on route [Mercator].
|
void |
setReRouteStatus(ReRouteMode reRouteState)
Sets the ReRoute status.
|
void |
setRoadType(int roadType)
Sets the road type off the current segment [0..14]
|
void |
setRoadTypeOfNextSpeedLimit(int roadTypeOfNextSpeedLimit)
Sets the road type of the next changing speed limit from the current position (normal conditions) [m].
|
void |
setRoundedDistFromNextToSecondNextManeuver(int distance)
Sets the distance from the next to the second next maneuver [m].
|
void |
setRoundedDistToNextManeuver(int distance)
Sets the distance to the next maneuver [m].
|
void |
setRouteLengthToNextManeuver(long routeLength)
Sets the distance [m] from previous maneuver to next maneuver.
|
void |
setSecondNextManeuver(ManeuverDescription maneuver)
Sets the description of the second next maneuver.
|
void |
setSecondNextManeuverCrossingView(CrossingView view)
Sets the information for drawing the crossing view for the second next
maneuver.
|
void |
setSegmentBorderPassed(boolean passed)
Sets if a segment border been passed since the last position.
|
void |
setSpeedLimit(int speedLimit)
Sets the speed limit on the current segment for cars [km/h].
|
void |
setSpeedLimitTruck(int speedLimitTruck)
Sets the speed limit on the current segment for trucks [km/h]
|
void |
setTimeToDestination(long time)
Sets the time [s] to destination.
|
void |
setTimeToNextManeuver(long time)
Sets the time [s] to next maneuver.
|
void |
setTimeToNextStation(long time)
Sets the time [s] to next station.
|
void |
setTruckWarningsCurrentSegment(TruckWarnings truckWarnings)
Sets truck warnings on current segment.
|
void |
setTruckWarningsNextSegment(TruckWarnings truckWarnings)
Sets truck warnings on the next segment.
|
void |
setVoiceOutputManeuverHint(short voiceOutputManeuverHint)
Sets the voice-output information.
0 if no voice output of the next maneuver is suggested.
|
void |
setWrongRoad(boolean wrongRoad)
Sets the information: Am I on the wrong road?
|
protected long jniCPtr
protected boolean jniCMemOwn
public com.ptvag.navigation.sdk.NativeObject parent
public NavigationInformation()
public NavigationInformation(long cPtr, boolean cMemoryOwn)
public Position getPos()
public void setPos(Position position)
position
- - the current position [Mercator].public Position getPosOnRoute()
public void setPosOnRoute(Position posOnRoute)
posOnRoute
- - the current position on route [Mercator].public Position getCorrectedPosOnRoute()
public void setCorrectedPosOnRoute(Position correctedPosOnRoute)
correctedPosOnRoute
- - the current position on route [Mercator]public int getCourse()
public void setCourse(int course)
course
- - the current coursepublic int getCourseOnRoute()
public void setCourseOnRoute(int courseOnRoute)
courseOnRoute
- - the current course on routepublic int getSpeedLimit()
public void setSpeedLimit(int speedLimit)
speedLimit
- - the speed limit on the current segment for carspublic int getSpeedLimitTruck()
public void setSpeedLimitTruck(int speedLimitTruck)
speedLimitTruck
- - the speed limitpublic int getNextSpeedLimit()
public void setNextSpeedLimit(int nextSpeedLimit)
nextSpeedLimit
- - the next changing speed limitpublic long getDistToNextSpeedLimit()
public void setDistToNextSpeedLimit(long distToNextSpeedLimit)
distToNextSpeedLimit
- - the distance to the next changing speed limitpublic int getRoadTypeOfNextSpeedLimit()
public void setRoadTypeOfNextSpeedLimit(int roadTypeOfNextSpeedLimit)
roadTypeOfNextSpeedLimit
- - the road type of the next changing speed limitpublic int getCategory()
public void setCategory(int category)
category
- - the categorypublic int getRoadType()
public void setRoadType(int roadType)
roadType
- - the road typepublic int getCountryCode()
public boolean getSegmentBorderPassed()
public void setSegmentBorderPassed(boolean passed)
passed
- - true if passedpublic boolean getManeuverPointPassed()
public void setManeuverPointPassed(boolean passed)
passed
- - true if passedpublic boolean getNextCrossingInTown()
public void setNextCrossingInTown(boolean nextCrossingInTown)
nextCrossingInTown
- true if it is inside.public boolean getNoTownUntilNextManeuver()
public void setNoTownUntilNextManeuver(boolean noTownUntilNextManeuver)
noTownUntilNextManeuver
- - true if only non-city-roads.public long getDistToNextManeuver()
public void setDistToNextManeuver(long distance)
distance
- - the distance.public long getTimeToNextManeuver()
public void setTimeToNextManeuver(long time)
time
- - the time to set.public long getRouteLengthToNextManeuver()
public void setRouteLengthToNextManeuver(long routeLength)
routeLength
- - the distance.public long getDistToDestination()
public void setDistToDestination(long distToDestination)
distToDestination
- - the distance.public long getTimeToDestination()
public void setTimeToDestination(long time)
time
- - the time.public java.util.Date getEstimatedTimeOfArrival()
public long getCrowFlightDistToDestination()
public void setCrowFlightDistToDestination(long distance)
distance
- - the crow flight distance .public long getDistToNextStation()
public void setDistToNextStation(long distance)
distance
- - the distance.public long getTimeToNextStation()
public void setTimeToNextStation(long time)
time
- - the time to the next station.public short getVoiceOutputManeuverHint()
public void setVoiceOutputManeuverHint(short voiceOutputManeuverHint)
voiceOutputManeuverHint
- - the voice-output information.public java.lang.String getCurrentStreetName()
public void setCurrentStreetName(java.lang.String streetName)
streetName
- - the name of the current streetpublic ManeuverDescription getNextManeuver()
public void setNextManeuver(ManeuverDescription nextManeuver)
nextManeuver
- - the description of the next maneuver.public ManeuverDescription getSecondNextManeuver()
public void setSecondNextManeuver(ManeuverDescription maneuver)
maneuver
- - the description of the second next maneuver.public CrossingView getNextManeuverCrossingView()
public void setNextManeuverCrossingView(CrossingView view)
view
- - the information for drawing the crossing view for the next maneuver.public CrossingView getSecondNextManeuverCrossingView()
public void setSecondNextManeuverCrossingView(CrossingView view)
view
- - the information for drawing the crossing view for the second next
maneuver.public int getRoundedDistToNextManeuver()
public void setRoundedDistToNextManeuver(int distance)
distance
- - the distance to the next maneuver [m].public int getRoundedDistFromNextToSecondNextManeuver()
public void setRoundedDistFromNextToSecondNextManeuver(int distance)
distance
- - the distance from the next to the second next maneuver [m].public boolean getInTunnel()
public void setInTunnel(boolean inTunnel)
inTunnel
- - true if in tunnel.public boolean getOnBridge()
public void setOnBridge(boolean onBridge)
onBridge
- public boolean getWrongRoad()
public void setWrongRoad(boolean wrongRoad)
wrongRoad
- - true, if on wrong roadpublic boolean getDestinationReached()
public void setDestinationReached(boolean destinationReached)
destinationReached
- - true if destination reachedpublic boolean getClosedArea()
public void setClosedArea(boolean closedArea)
closedArea
- - true if forbidden road.public ReRouteMode getReRouteStatus()
public void setReRouteStatus(ReRouteMode reRouteState)
reRouteState
- - the ReRoute statuspublic GuidanceKind getGuidanceKind()
public void setGuidanceKind(GuidanceKind guidanceKind)
guidanceKind
- - the guidance modepublic GuidanceKind getNextGuidanceKind()
public void setNextGuidanceKind(GuidanceKind guidanceKind)
guidanceKind
- - the guidance modepublic short getCrowFlightDirection()
public void setCrowFlightDirection(short direction)
direction
- - the direction to targetpublic long getCrowFlightGPSDistToDestination()
public void setCrowFlightGPSDistToDestination(long distance)
distance
- - the crow flight distance.public TruckWarnings getTruckWarningsCurrentSegment()
public void setTruckWarningsCurrentSegment(TruckWarnings truckWarnings)
truckWarnings
- - the truck warnings on current segment.public TruckWarnings getTruckWarningsNextSegment()
public void setTruckWarningsNextSegment(TruckWarnings truckWarnings)
truckWarnings
- - the truck warnings on the next segment.public int getTrafficDelayOnRoute(boolean complete)
complete
- - flag whether the delay for the complete route or from the current position should be returnedpublic static long getCPtr(com.ptvag.navigation.sdk.NativeObject obj)
protected void finalize() throws java.lang.Throwable
finalize
in class java.lang.Object
java.lang.Throwable
public void delete()