public class GermanySpatialRule extends AbstractSpatialRule
DEFAULT_PRIORITY| Constructor and Description |
|---|
GermanySpatialRule(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)
Germany contains roads with no speed limit.
|
equals, getBorders, getPriority, hashCode, toStringpublic GermanySpatialRule(List<org.locationtech.jts.geom.Polygon> borders)
public double getMaxSpeed(RoadClass roadClass, TransportationMode transport, double currentMaxSpeed)
MaxSpeed.UNLIMITED_SIGN_SPEED.
Your implementation should be able to handle these cases.
getMaxSpeed in interface SpatialRulegetMaxSpeed in class AbstractSpatialRuleroadClass - The highway type, e.g. RoadClass.MOTORWAYtransport - 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)
SpatialRuleRoadAccess for a certain highway type and transportation transport.getAccess in interface SpatialRulegetAccess in class AbstractSpatialRuleroadClass - The highway type, e.g. RoadClass.MOTORWAYtransport - The mode of transportationcurrentRoadAccess - The current road access value (default: RoadAccess.YES)public String getId()
SpatialRuleCopyright © 2012–2020. All rights reserved.