public interface SpatialRule
Every SpatialRule has a set of borders. The rules are valid inside of these borders.
Modifier and Type | Field and Description |
---|---|
static SpatialRule |
EMPTY |
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. |
List<org.locationtech.jts.geom.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 speedRoadAccess getAccess(String highwayTag, TransportationMode transportationMode, RoadAccess _default)
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 AccessValueList<org.locationtech.jts.geom.Polygon> getBorders()
String getId()
Copyright © 2012–2020. All rights reserved.