public class DefaultSpatialRule extends AbstractSpatialRule
SpatialRule.Access
polygons
EMPTY
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, toString
public double getMaxSpeed(String highwayTag, double _default)
SpatialRule
highwayTag
- The highway type, e.g. primary, secondary_default
- The default max speedpublic SpatialRule.Access getAccess(String highwayTag, TransportationMode transportationMode, SpatialRule.Access _default)
SpatialRule
SpatialRule.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()
SpatialRule
Copyright © 2012–2019. All rights reserved.