TurnRestriction Data Type

Implemented Interfaces
Serializable
Properties
name data type description
type TurnRestrictionType
from StreetEdge
to StreetEdge
time RepeatingTimePeriod
modes TraverseModeSet

Example

{
  "type" : "ONLY_TURN",
  "from" : {
    "wayId" : 12345,
    "elevationProfile" : {
      "dimension" : 12345
    },
    "elevationFlattened" : true,
    "maxSlope" : 12345.0,
    "distanceMeters" : 12345.0,
    "effectiveBikeDistance" : 12345.0,
    "effectiveBikeWorkCost" : 12345.0,
    "effectiveWalkDistance" : 12345.0,
    "bicycleSafetyFactor" : 12345.0,
    "name" : { },
    "geometry" : {
      "closed" : true,
      "endPoint" : { },
      "dimension" : 12345,
      "empty" : true,
      "numPoints" : 12345,
      "geometryType" : "...",
      "coordinateSequence" : { },
      "length" : 12345.0,
      "boundaryDimension" : 12345,
      "startPoint" : { },
      "coordinates" : [ { }, { } ],
      "coordinate" : { },
      "boundary" : { },
      "ring" : true,
      "numGeometries" : 12345,
      "precisionModel" : { },
      "interiorPoint" : { },
      "rectangle" : true,
      "area" : 12345.0,
      "envelopeInternal" : { },
      "centroid" : { },
      "factory" : { },
      "SRID" : 12345,
      "simple" : true,
      "userData" : { },
      "envelope" : { },
      "valid" : true
    },
    "wheelchairAccessible" : true,
    "permission" : "PEDESTRIAN_AND_CAR",
    "streetClass" : 12345,
    "back" : true,
    "roundabout" : true,
    "walkNoThruTraffic" : true,
    "motorVehicleNoThruTraffic" : true,
    "bicycleNoThruTraffic" : true,
    "stairs" : true,
    "carSpeed" : 12345.0,
    "slopeOverride" : true,
    "inAngle" : 12345,
    "outAngle" : 12345,
    "turnRestrictions" : [ {
      "type" : "ONLY_TURN",
      "from" : { },
      "to" : { },
      "time" : { },
      "modes" : { }
    }, {
      "type" : "NO_TURN",
      "from" : { },
      "to" : { },
      "time" : { },
      "modes" : { }
    } ],
    "startOsmNodeId" : 12345,
    "endOsmNodeId" : 12345,
    "fromVertex" : {
      "outgoing" : [ { }, { } ],
      "incoming" : [ { }, { } ],
      "degreeOut" : 12345,
      "degreeIn" : 12345,
      "x" : 12345.0,
      "y" : 12345.0,
      "lon" : 12345.0,
      "lat" : 12345.0,
      "name" : { },
      "defaultName" : "...",
      "stationElement" : { },
      "label" : "...",
      "coordinate" : { },
      "outgoingStreetEdges" : [ { }, { } ]
    },
    "toVertex" : {
      "outgoing" : [ { }, { } ],
      "incoming" : [ { }, { } ],
      "degreeOut" : 12345,
      "degreeIn" : 12345,
      "x" : 12345.0,
      "y" : 12345.0,
      "lon" : 12345.0,
      "lat" : 12345.0,
      "name" : { },
      "defaultName" : "...",
      "stationElement" : { },
      "label" : "...",
      "coordinate" : { },
      "outgoingStreetEdges" : [ { }, { } ]
    },
    "partial" : true,
    "direction" : "...",
    "trip" : {
      "operator" : { },
      "tripOperator" : { },
      "route" : { },
      "serviceId" : { },
      "mode" : "FUNICULAR",
      "netexSubmode" : "...",
      "tripShortName" : "...",
      "internalPlanningCode" : "...",
      "tripHeadsign" : "...",
      "routeShortName" : "...",
      "direction" : "UNKNOWN",
      "blockId" : "...",
      "shapeId" : { },
      "wheelchairAccessible" : 12345,
      "bikesAllowed" : "ALLOWED",
      "fareId" : "...",
      "tripAlteration" : "REPLACED",
      "id" : { }
    },
    "defaultName" : "...",
    "distanceIndependentTime" : 12345
  },
  "to" : {
    "wayId" : 12345,
    "elevationProfile" : {
      "dimension" : 12345
    },
    "elevationFlattened" : true,
    "maxSlope" : 12345.0,
    "distanceMeters" : 12345.0,
    "effectiveBikeDistance" : 12345.0,
    "effectiveBikeWorkCost" : 12345.0,
    "effectiveWalkDistance" : 12345.0,
    "bicycleSafetyFactor" : 12345.0,
    "name" : { },
    "geometry" : {
      "closed" : true,
      "endPoint" : { },
      "dimension" : 12345,
      "empty" : true,
      "numPoints" : 12345,
      "geometryType" : "...",
      "coordinateSequence" : { },
      "length" : 12345.0,
      "boundaryDimension" : 12345,
      "startPoint" : { },
      "coordinates" : [ { }, { } ],
      "coordinate" : { },
      "boundary" : { },
      "ring" : true,
      "numGeometries" : 12345,
      "precisionModel" : { },
      "interiorPoint" : { },
      "rectangle" : true,
      "area" : 12345.0,
      "envelopeInternal" : { },
      "centroid" : { },
      "factory" : { },
      "SRID" : 12345,
      "simple" : true,
      "userData" : { },
      "envelope" : { },
      "valid" : true
    },
    "wheelchairAccessible" : true,
    "permission" : "NONE",
    "streetClass" : 12345,
    "back" : true,
    "roundabout" : true,
    "walkNoThruTraffic" : true,
    "motorVehicleNoThruTraffic" : true,
    "bicycleNoThruTraffic" : true,
    "stairs" : true,
    "carSpeed" : 12345.0,
    "slopeOverride" : true,
    "inAngle" : 12345,
    "outAngle" : 12345,
    "turnRestrictions" : [ {
      "type" : "NO_TURN",
      "from" : { },
      "to" : { },
      "time" : { },
      "modes" : { }
    }, {
      "type" : "NO_TURN",
      "from" : { },
      "to" : { },
      "time" : { },
      "modes" : { }
    } ],
    "startOsmNodeId" : 12345,
    "endOsmNodeId" : 12345,
    "fromVertex" : {
      "outgoing" : [ { }, { } ],
      "incoming" : [ { }, { } ],
      "degreeOut" : 12345,
      "degreeIn" : 12345,
      "x" : 12345.0,
      "y" : 12345.0,
      "lon" : 12345.0,
      "lat" : 12345.0,
      "name" : { },
      "defaultName" : "...",
      "stationElement" : { },
      "label" : "...",
      "coordinate" : { },
      "outgoingStreetEdges" : [ { }, { } ]
    },
    "toVertex" : {
      "outgoing" : [ { }, { } ],
      "incoming" : [ { }, { } ],
      "degreeOut" : 12345,
      "degreeIn" : 12345,
      "x" : 12345.0,
      "y" : 12345.0,
      "lon" : 12345.0,
      "lat" : 12345.0,
      "name" : { },
      "defaultName" : "...",
      "stationElement" : { },
      "label" : "...",
      "coordinate" : { },
      "outgoingStreetEdges" : [ { }, { } ]
    },
    "partial" : true,
    "direction" : "...",
    "trip" : {
      "operator" : { },
      "tripOperator" : { },
      "route" : { },
      "serviceId" : { },
      "mode" : "TRAM",
      "netexSubmode" : "...",
      "tripShortName" : "...",
      "internalPlanningCode" : "...",
      "tripHeadsign" : "...",
      "routeShortName" : "...",
      "direction" : "OUTBOUND",
      "blockId" : "...",
      "shapeId" : { },
      "wheelchairAccessible" : 12345,
      "bikesAllowed" : "UNKNOWN",
      "fareId" : "...",
      "tripAlteration" : "PLANNED",
      "id" : { }
    },
    "defaultName" : "...",
    "distanceIndependentTime" : 12345
  },
  "time" : { },
  "modes" : {
    "bicycle" : true,
    "walk" : true,
    "car" : true,
    "tram" : true,
    "bus" : true,
    "gondola" : true,
    "ferry" : true,
    "cableCar" : true,
    "funicular" : true,
    "rail" : true,
    "trolleyBus" : true,
    "subway" : true,
    "airplane" : true,
    "transit" : true,
    "nonTransitSet" : { },
    "modes" : [ "AIRPLANE", "TROLLEYBUS" ],
    "valid" : true,
    "asStr" : "..."
  }
}