public Itinerary(StreetSegment streetSegment,int accessIndex,ZonedDateTime fromTimeDateZD){
  transfers=0;
  waitingTime=0;
  walkTime=duration=streetSegment.duration;
  distance=streetSegment.distance;
  transitTime=0;
  startTime=fromTimeDateZD;
  endTime=fromTimeDateZD.plusSeconds(streetSegment.duration);
  PointToPointConnection pointToPointConnection=new PointToPointConnection(accessIndex);
  connection=pointToPointConnection;
}

public Itinerary ( StreetSegment streetSegment , int accessIndex , ZonedDateTime fromTimeDateZD ) { transfers = 0 ; waitingTime = 0 ; walkTime = duration = streetSegment . duration ; distance = streetSegment . distance ; transitTime = 0 ; startTime = fromTimeDateZD ; endTime = fromTimeDateZD . plusSeconds ( streetSegment . duration ) ; PointToPointConnection pointToPointConnection = new PointToPointConnection ( accessIndex ) ; connection = pointToPointConnection ; }
creates itinerary from streetsegment it assumes it is a direct path ( without transit ) starttime is set fromtimedatazd endtime is set from starttime plus duration of streetsegment
