public class OSMTurnRelation extends Object
Modifier and Type | Class and Description |
---|---|
static class |
OSMTurnRelation.Type |
Constructor and Description |
---|
OSMTurnRelation(long fromWayID,
long viaNodeID,
long toWayID,
OSMTurnRelation.Type restrictionType) |
Modifier and Type | Method and Description |
---|---|
long |
getOsmIdFrom() |
long |
getOsmIdTo() |
OSMTurnRelation.Type |
getRestriction() |
String |
getVehicleTypeRestricted() |
List<String> |
getVehicleTypesExcept() |
long |
getViaOsmNodeId() |
boolean |
isVehicleTypeConcernedByTurnRestriction(Collection<String> vehicleTypes)
For a conditional turn restriction, test each vehicle type to verify if it is concerned.
|
void |
setVehicleTypeRestricted(String vehicleTypeRestricted) |
void |
setVehicleTypesExcept(List<String> vehicleTypesExcept) |
String |
toString() |
public OSMTurnRelation(long fromWayID, long viaNodeID, long toWayID, OSMTurnRelation.Type restrictionType)
public long getOsmIdFrom()
public long getOsmIdTo()
public long getViaOsmNodeId()
public OSMTurnRelation.Type getRestriction()
public String getVehicleTypeRestricted()
public void setVehicleTypeRestricted(String vehicleTypeRestricted)
public boolean isVehicleTypeConcernedByTurnRestriction(Collection<String> vehicleTypes)
Copyright © 2012–2020. All rights reserved.