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