public class DefaultSpatialRule extends AbstractSpatialRule
polygonsEMPTY| Constructor and Description |
|---|
DefaultSpatialRule() |
| Modifier and Type | Method and Description |
|---|---|
RoadAccess |
getAccess(String highwayTag,
TransportationMode transportationMode,
RoadAccess _default)
Returns the
RoadAccess for a certain highway type and transportation mode. |
String |
getId()
Returns the id for this rule, e.g.
|
double |
getMaxSpeed(String highwayTag,
double _default)
Return the max speed for a certain highway type.
|
addBorder, equals, getBorders, hashCode, setBorders, toStringpublic double getMaxSpeed(String highwayTag, double _default)
SpatialRulehighwayTag - The highway type, e.g. primary, secondary_default - The default max speedpublic RoadAccess getAccess(String highwayTag, TransportationMode transportationMode, RoadAccess _default)
SpatialRuleRoadAccess for a certain highway type and transportation mode. If nothing is defined,
_default will be returned.highwayTag - The highway type, e.g. primary, secondarytransportationMode - The mode of transportation_default - The default AccessValuepublic String getId()
SpatialRuleCopyright © 2012–2019. All rights reserved.