Search in sources :

Example 1 with WayProperties

use of org.opentripplanner.graph_builder.module.osm.WayProperties in project OpenTripPlanner by opentripplanner.

the class OSMWayTest method getWayProperties.

private P2<StreetTraversalPermission> getWayProperties(OSMWay way) {
    WayPropertySet wayPropertySet = new WayPropertySet();
    WayProperties wayData = wayPropertySet.getDataForWay(way);
    StreetTraversalPermission permissions = OSMFilter.getPermissionsForWay(way, wayData.getPermission(), null);
    return OSMFilter.getPermissions(permissions, way);
}
Also used : StreetTraversalPermission(org.opentripplanner.routing.edgetype.StreetTraversalPermission) WayProperties(org.opentripplanner.graph_builder.module.osm.WayProperties) WayPropertySet(org.opentripplanner.graph_builder.module.osm.WayPropertySet)

Aggregations

WayProperties (org.opentripplanner.graph_builder.module.osm.WayProperties)1 WayPropertySet (org.opentripplanner.graph_builder.module.osm.WayPropertySet)1 StreetTraversalPermission (org.opentripplanner.routing.edgetype.StreetTraversalPermission)1