public class RouteOptions
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 |
---|
RouteOptions()
Constructor
|
RouteOptions(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 |
getAltRoute()
Returns if an alternative route is set.
|
int |
getAltRouteMalus()
Not yet implemented.
|
boolean |
getAvoidFerryOnDestination()
If true don't link to ferries on destination.
|
boolean |
getAvoidFerryOnStart()
If true don't link to ferries on start.
|
boolean |
getAvoidMotorwayOnDestination()
If true don't link to motorways on destination.
|
boolean |
getAvoidMotorwayOnStart()
If true don't link to motorways on start.
|
boolean |
getAvoidPedestrianZoneOnDestination()
If true don't link to segments in pedestrian zones on destination.
|
boolean |
getAvoidPedestrianZoneOnStart()
If true don't link to segments in pedestrian zones on start.
|
boolean |
getAvoidTunnelOnDestination()
If true don't link to tunnel on destination.
|
boolean |
getAvoidTunnelOnStart()
If true don't link to tunnel on start.
|
short |
getClassOfDangerousGoods()
Class of dangerous goods.
|
static long |
getCPtr(com.ptvag.navigation.sdk.NativeObject obj) |
boolean |
getForceMRRouting()
If set to true a cross map routing will be formed even if start and
destination are within the same map.
|
boolean |
getLorry()
returns true if lorry restrictions are considered
during route calculation, false otherwise.
|
int |
getMatchDistDestination()
Distance for road matching at the destination [Mercator units].
|
int |
getMatchDistStart()
Distance for road matching at the start [Mercator units].
|
boolean |
getNiceTransit()
If set to true a cross map routing will use detail level maps in transit
countries if available.
|
boolean |
getPedestrianRoutingFromStart()
If true the route leads to the nearest segment outside the pedestrian
zone and a trace through the pedestrian zone is added to the route.
|
boolean |
getPedestrianRoutingToDestination()
If true the route leads to the nearest segment outside the pedestrian zone
and a trace through the pedestrian zone is added to the route.
|
boolean |
getPremisesRouting()
If true, it's possible to route through gates of premises at start and target.
|
RouteCalculationType |
getRouteCalculationType()
Get the current set
RouteCalculationType |
boolean |
getRouteWithoutAutoroute()
Returns the flag for controlling whether the route should avoid motorways.
|
boolean |
getRouteWithoutFerry()
Returns the flag for controlling whether the route should avoid ferries.
|
RoutingVehicleType |
getRoutingVehicle()
Returns the vehicle type.
|
short[] |
getSpeedTable_Calc()
This method can be used to set the desired speed profile for route calculation.
|
short[] |
getSpeedTable_RouteList()
This method can be used to set the desired speed profile for the route list
(calculation of times).
|
int |
getTimeFactor()
Returns the time factor.
|
int |
getTollFactor()
The factor is to understand as percentage of additional charge of cost of segments
with toll.
|
int |
getTruckTollFactor()
The factor is to understand as percentage of additional charge of cost of segments
with truck toll.
|
boolean |
getUseRRTLayers()
If set to true then .rrt layers will be evaluated for route calculation.
|
boolean |
getUseTollLayer()
If set to true then toll layers will be evaluated for route calculation.
|
boolean |
getUseTruckTollLayer()
If set to true then truck toll layers will be evaluated for route calculation.
|
int |
getUTurnMalus()
This parameter allows to control the handling of U-turns during the route-
calculation.
|
boolean |
getViolateLorryRescrictions()
If true, it's possible to ignore LorryRestrictions at start and target.
|
void |
setAltRoute(int altRoute)
Sets the alternative or default route
This parameter can be used to set the alternative route that should be exported.
|
void |
setAltRouteMalus(int altRouteMalus)
Not yet implemented.
|
void |
setAvoidFerryOnDestination(boolean avoidFerryOnDestination)
If true don't link to ferries on destination.
|
void |
setAvoidFerryOnStart(boolean avoidFerryOnStart)
If true don't link to ferries on start.
|
void |
setAvoidMotorwayOnDestination(boolean avoidMotorwayOnDestination)
If true don't link to motorways on destination.
|
void |
setAvoidMotorwayOnStart(boolean avoidMotorwayOnStart)
If true don't link to motorways on start.
|
void |
setAvoidPedestrianZoneOnDestination(boolean avoidPedestrianZoneOnDestination)
If true don't link to segments in pedestrian zones on destination.
|
void |
setAvoidPedestrianZoneOnStart(boolean avoidPedestrianZoneOnStart)
If true don't link to segments in pedestrian zones on start.
|
void |
setAvoidTunnelOnDestination(boolean avoidTunnelOnDestination)
If true don't link to tunnel on destination.
|
void |
setAvoidTunnelOnStart(boolean avoidTunnelOnStart)
If true don't link to tunnel on start.
|
void |
setClassOfDangerousGoods(short classOfDangerousGoods)
Class of dangerous goods.
|
void |
setForceMRRouting(boolean forceMRRouting)
If set to true a cross map routing will be formed even if start and
destination are within the same map.
|
void |
setLorry(boolean lorry)
Set lorry restrictions which should be taken into consideration
during route calculation.
|
void |
setMatchDistDestination(int matchDistDestination)
Distance for road matching at the destination [Mercator units].
|
void |
setMatchDistStart(int matchDistStart)
Distance for road matching at the start [Mercator units].
|
void |
setNiceTransit(boolean niceTransit)
If set to true a cross map routing will use detail level maps in transit
countries if available.
|
void |
setPedestrianRoutingFromStart(boolean pedestrianRoutingFromStart)
If true the route leads to the nearest segment outside the pedestrian
zone an a trace through the pedestrian zone is added to the route.
|
void |
setPedestrianRoutingToDestination(boolean pedestrianRoutingToDestination)
If true the route leads to the nearest segment outside the pedestrian zone
and a trace through the pedestrian zone is added to the route.
|
void |
setPremisesRouting(boolean premisesRouting)
If true, it's possible to route through gates of premises at start and target.
|
void |
setRouteCalculationType(RouteCalculationType routeCalculationType)
Set the type of route calculation (see
RouteCalculationType :
RouteClassic = classic routing, no alternative routes
RouteAlternative = routing with alternatives routes |
void |
setRouteWithoutAutoroute(boolean routeWithoutAutoroute)
Sets the flag for controlling whether the route should avoid motorways.
|
void |
setRouteWithoutFerry(boolean routeWithoutFerry)
Sets the flag for controlling whether the route should avoid ferries.
|
void |
setRoutingVehicle(RoutingVehicleType routingVehicle)
Sets the vehicle type.
|
void |
setSpeedTable_Calc(short[] speedTable_Calc)
This method can be used to set the desired speed profile for route calculation.
|
void |
setSpeedTable_RouteList(short[] speedTable_RouteList)
This method can be used to set the desired speed profile for the route list
(calculation of times).
|
void |
setTimeFactor(int timeFactor)
Sets the time factor.
|
void |
setTollFactor(int tollFactor)
The factor is to understand as percentage additional charge of cost of a segments
with toll.
|
void |
setTruckTollFactor(int truckTollFactor)
The factor is to understand as percentage additional charge of cost of a segments
with truck toll.
|
void |
setUseRRTLayers(boolean useRRTLayers)
If set to true then .rrt layers will be evaluated for route calculation.
|
void |
setUseTollLayer(boolean useTollLayer)
If set to true then toll layers will be evaluated for route calculation.
|
void |
setUseTruckTollLayer(boolean useTruckTollLayer)
If set to true then truck toll layers will be evaluated for route calculation.
|
void |
setUTurnMalus(int uTurnMalus)
This parameter allows to control the handling of U-turns during the route-
calculation.
|
void |
setViolateLorryRescrictions(boolean violateLorryRescrictions)
If true, it's possible to ignore LorryRestrictions at start and target.
|
protected long jniCPtr
protected boolean jniCMemOwn
public com.ptvag.navigation.sdk.NativeObject parent
public RouteOptions()
public RouteOptions(long cPtr, boolean cMemoryOwn)
public int getTollFactor()
public void setTollFactor(int tollFactor)
tollFactor
- The toll factor to use.public boolean getUseTollLayer()
public void setUseTruckTollLayer(boolean useTruckTollLayer)
useTruckTollLayer
- Whether truck toll layers are to be evaluated during route
calculation.public int getTruckTollFactor()
public void setTruckTollFactor(int truckTollFactor)
truckTollFactor
- The toll factor to use.public boolean getUseTruckTollLayer()
public void setUseTollLayer(boolean useTollLayer)
useTollLayer
- Whether toll layers are to be evaluated during route
calculation.public short getClassOfDangerousGoods()
public void setClassOfDangerousGoods(short classOfDangerousGoods)
classOfDangerousGoods
- The class of dangerous goods.public boolean getUseRRTLayers()
public void setUseRRTLayers(boolean useRRTLayers)
useRRTLayers
- Whether .rrt layers are to be evaluated during route calculation.public boolean getForceMRRouting()
public void setForceMRRouting(boolean forceMRRouting)
forceMRRouting
- The cross map routing setting.public boolean getNiceTransit()
public void setNiceTransit(boolean niceTransit)
niceTransit
- The nice transit flag to use.public boolean getLorry()
public void setLorry(boolean lorry)
lorry
- Whether lorry restrictions are to be evaluated during
route calculation.public boolean getViolateLorryRescrictions()
public void setViolateLorryRescrictions(boolean violateLorryRescrictions)
violateLorryRescrictions
- The ignore LorryRestrictions setting.public boolean getPremisesRouting()
public void setPremisesRouting(boolean premisesRouting)
premisesRouting
- - the gates of premises setting.public boolean getPedestrianRoutingToDestination()
public void setPedestrianRoutingToDestination(boolean pedestrianRoutingToDestination)
pedestrianRoutingToDestination
- public boolean getPedestrianRoutingFromStart()
public void setPedestrianRoutingFromStart(boolean pedestrianRoutingFromStart)
pedestrianRoutingFromStart
- public boolean getAvoidPedestrianZoneOnDestination()
public void setAvoidPedestrianZoneOnDestination(boolean avoidPedestrianZoneOnDestination)
avoidPedestrianZoneOnDestination
- - the setting for avoiding pedestrian
zones on destinationpublic boolean getAvoidPedestrianZoneOnStart()
public void setAvoidPedestrianZoneOnStart(boolean avoidPedestrianZoneOnStart)
avoidPedestrianZoneOnStart
- - the setting for avoiding pedestrian zones
on startpublic boolean getAvoidTunnelOnDestination()
public void setAvoidTunnelOnDestination(boolean avoidTunnelOnDestination)
avoidTunnelOnDestination
- - the setting for avoiding tunnel on
destination.public boolean getAvoidTunnelOnStart()
public void setAvoidTunnelOnStart(boolean avoidTunnelOnStart)
avoidTunnelOnStart
- - the setting for avoiding tunnel on start.public boolean getAvoidMotorwayOnDestination()
public void setAvoidMotorwayOnDestination(boolean avoidMotorwayOnDestination)
avoidMotorwayOnDestination
- - the setting for avoiding motorways on
destinationpublic boolean getAvoidMotorwayOnStart()
public void setAvoidMotorwayOnStart(boolean avoidMotorwayOnStart)
avoidMotorwayOnStart
- - the setting for avoiding motorways on startpublic boolean getAvoidFerryOnDestination()
public void setAvoidFerryOnDestination(boolean avoidFerryOnDestination)
avoidFerryOnDestination
- - the setting for avoiding ferries on destination.public boolean getAvoidFerryOnStart()
public void setAvoidFerryOnStart(boolean avoidFerryOnStart)
avoidFerryOnStart
- - the setting for avoiding ferries on start.public int getMatchDistDestination()
public void setMatchDistDestination(int matchDistDestination)
matchDistDestination
- - the distance for road matching at the destination.public int getMatchDistStart()
public void setMatchDistStart(int matchDistStart)
matchDistStart
- - the distance for road matching at the startpublic RoutingVehicleType getRoutingVehicle()
public void setRoutingVehicle(RoutingVehicleType routingVehicle)
routingVehicle
- - the vehicle type.public int getUTurnMalus()
public void setUTurnMalus(int uTurnMalus)
uTurnMalus
- - the U-turn malus valuepublic short[] getSpeedTable_RouteList()
public void setSpeedTable_RouteList(short[] speedTable_RouteList)
speedTable_RouteList
- - the speedtable routelist.public short[] getSpeedTable_Calc()
public void setSpeedTable_Calc(short[] speedTable_Calc)
speedTable_Calc
- - the speed profile.public boolean getRouteWithoutFerry()
public void setRouteWithoutFerry(boolean routeWithoutFerry)
routeWithoutFerry
- the value for the flag.public boolean getRouteWithoutAutoroute()
public void setRouteWithoutAutoroute(boolean routeWithoutAutoroute)
routeWithoutAutoroute
- - the flag for controlling whether the route should
avoid motorways.public int getAltRouteMalus()
public void setAltRouteMalus(int altRouteMalus)
altRouteMalus
- public int getAltRoute()
public void setAltRoute(int altRoute)
altRoute
- info if alternative or default route.public int getTimeFactor()
public void setTimeFactor(int timeFactor)
timeFactor
- - the time factor.public RouteCalculationType getRouteCalculationType()
RouteCalculationType
public void setRouteCalculationType(RouteCalculationType routeCalculationType)
RouteCalculationType
:
RouteClassic = classic routing, no alternative routes
RouteAlternative = routing with alternatives routesrouteCalculationType
- The type of routing, classic or with alternativespublic 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()