public class AustriaSpatialRule extends AbstractSpatialRule
DEFAULT_PRIORITY
Constructor and Description |
---|
AustriaSpatialRule(List<org.locationtech.jts.geom.Polygon> borders) |
Modifier and Type | Method and Description |
---|---|
RoadAccess |
getAccess(RoadClass roadClass,
TransportationMode transport,
RoadAccess currentRoadAccess)
Returns the
RoadAccess for a certain highway type and transportation transport. |
String |
getId()
Returns the id for this rule, e.g.
|
double |
getMaxSpeed(RoadClass roadClass,
TransportationMode transport,
double currentMaxSpeed)
Return the max speed for a certain road class and transportation mode.
|
equals, getBorders, getPriority, hashCode, toString
public AustriaSpatialRule(List<org.locationtech.jts.geom.Polygon> borders)
public double getMaxSpeed(RoadClass roadClass, TransportationMode transport, double currentMaxSpeed)
SpatialRule
getMaxSpeed
in interface SpatialRule
getMaxSpeed
in class AbstractSpatialRule
roadClass
- The highway type, e.g. RoadClass.MOTORWAY
transport
- The mode of transportationcurrentMaxSpeed
- The current max speed value or -1 if no value has been set yetpublic RoadAccess getAccess(RoadClass roadClass, TransportationMode transport, RoadAccess currentRoadAccess)
SpatialRule
RoadAccess
for a certain highway type and transportation transport.getAccess
in interface SpatialRule
getAccess
in class AbstractSpatialRule
roadClass
- The highway type, e.g. RoadClass.MOTORWAY
transport
- The mode of transportationcurrentRoadAccess
- The current road access value (default: RoadAccess.YES
)public String getId()
SpatialRule
Copyright © 2012–2020. All rights reserved.