StreetEdge street = null, backStreet = null;
double length = this.getGeometryLengthMeters(geometry);
P2<StreetTraversalPermission> permissionPair = OSMFilter.getPermissions(permissions,
way);
StreetTraversalPermission permissionsFront = permissionPair.first;
StreetTraversalPermission permissionsBack = permissionPair.second;
if (permissionsFront.allowsAnything()) {
street = getEdgeForStreet(start, end, way, index, startNode, endNode, length,
permissionsFront, geometry, false);
}
if (permissionsBack.allowsAnything()) {
backStreet = getEdgeForStreet(end, start, way, index, endNode, startNode, length,
permissionsBack, backGeometry, true);
}
if (street != null && backStreet != null) {
backStreet.shareData(street);