public interface SpatialRule
Every SpatialRule has a set of borders. The rules are valid inside of these borders.
Modifier and Type | Interface and Description |
---|---|
static class |
SpatialRule.Access |
Modifier and Type | Field and Description |
---|---|
static SpatialRule |
EMPTY |
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. |
List<Polygon> |
getBorders()
Returns the borders in which the SpatialRule is valid
|
String |
getId()
Returns the id for this rule, e.g.
|
double |
getMaxSpeed(String highway,
double _default)
Return the max speed for a certain highway type.
|
static final SpatialRule EMPTY
double getMaxSpeed(String highway, double _default)
highway
- The highway type, e.g. primary, secondary_default
- The default max speedSpatialRule.Access getAccess(String highwayTag, TransportationMode transportationMode, SpatialRule.Access _default)
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 AccessValueString getId()
Copyright © 2012–2019. All rights reserved.