public interface SpatialRule
Every SpatialRule has a set of borders. The rules are valid inside of these 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. |
List<org.locationtech.jts.geom.Polygon> |
getBorders()
Returns the borders in which the SpatialRule is valid
|
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.
|
int |
getPriority()
Returns the priority of the rule.
|
double getMaxSpeed(RoadClass roadClass, TransportationMode transport, double currentMaxSpeed)
roadClass - The highway type, e.g. RoadClass.MOTORWAYtransport - The mode of transportationcurrentMaxSpeed - The current max speed value or Double.NaN if no value has been set yetRoadAccess getAccess(RoadClass roadClass, TransportationMode transport, RoadAccess currentRoadAccess)
RoadAccess for a certain highway type and transportation transport.roadClass - The highway type, e.g. RoadClass.MOTORWAYtransport - The mode of transportationcurrentRoadAccess - The current road access value (default: RoadAccess.YES)List<org.locationtech.jts.geom.Polygon> getBorders()
int getPriority()
Integer.MIN_VALUE (minimum priority) and
Integer.MAX_VALUE (maximum priority)String getId()
Copyright © 2012–2020. All rights reserved.