public class DefaultSpatialRule extends AbstractSpatialRule
SpatialRule.AccesspolygonsEMPTY| Constructor and Description |
|---|
DefaultSpatialRule() |
| Modifier and Type | Method and Description |
|---|---|
SpatialRule.Access |
getAccess(String highwayTag,
TransportationMode transportationMode,
SpatialRule.Access _default)
Returns the
SpatialRule.Access 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 SpatialRule.Access getAccess(String highwayTag, TransportationMode transportationMode, SpatialRule.Access _default)
SpatialRuleSpatialRule.Access 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.